You are not logged in.
Does anyone know how to open a new konsole (kde) tab with the current directory? With i3 and xterm I've used "map T console terminal", which worked fine. Can't get it to work with konsole
Offline
using ranger with tmux question.
I am in ranger within tmux, how do I set a keybinding so that I can from within ranger open a new tmux pane and be in the same dir I was in within ranger?
You can like linux without becoming a fanatic!
Offline
map <key> console terminal
Set TERMCMD accordingly (tmux)
Offline
Also a tmux user, and a very longtime ranger user. I just came across tmux-resurrect and vim-obsession, and find them awesome. However vim sessions opened from ranger aren't reloaded (tbf that does sound really complicated) nor are ranger tabs. Does anyone have hacks to improve this?
@chickenPie4tea you could just define a function for ranger which runs it with --choosedir and then does a 'cd' when you quit ranger. bash already has this (called ranger-cd).
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
map <key> console terminal
Set TERMCMD accordingly (tmux)
That opened a new terminal, not quite what I wanted but a bit of trail and error and I got there.
map ew eval fm.run("tmux split-window -h ")
You can like linux without becoming a fanatic!
Offline
I'm wondering if it's possible to show my terminal without exiting ranger. Like C-o in mc
Offline
You mean like pressing 'S' (with the default configuration)?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Not really, S opens a shell. C-o in mc toggles between shell and mc which is very convenient.
Offline
I'm still not sure what the difference is. S opens a shell, but ranger is still running, to get back to ranger, just exit the shell (Ctrl-D).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
practically both are same, in mc, it actually opens subshell, from which one can get back with the same <C-O>, in ranger it opens true shell where one exits with "exit" or <C-D> to get back to the ranger
EDIT: after few trials and errors finally I am now comfortable with ranger, and ready to move away from mc. I have found ranger to be a great software which is lightweight, fast and fully functional.
Last edited by Docbroke (2016-12-17 14:10:26)
Arch is home!
https://github.com/Docbroke
Offline
A subshell is a true shell as surely as I'm a true Scotsman.
Is there an option or feature there that is missing that is desired? Or is it just a difference of semantics?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
A subshell is a true shell as surely as I'm a true Scotsman.
subshell is part of mc, so it accepts <C-o>, and one can use it to toggle, otherwise no difference.
Arch is home!
https://github.com/Docbroke
Offline
I was going for the toggle part, I guess remapping S to C-d works for me
Last edited by ryzion (2016-12-17 14:26:06)
Offline
sorry for back to back post
Regarding something I miss from mc, is archieve management. MC can open archieves just like any other folder and allow adding/removing/deleting files to an fro using normal cut/copy/paste commands. In ranger one needs to extract the archieve to some other folder and do editing and repacking it. (or I still need to find out proper commands here)
Arch is home!
https://github.com/Docbroke
Offline
A subshell is a true shell as surely as I'm a true Scotsman.
Is there an option or feature there that is missing that is desired? Or is it just a difference of semantics?
mc's subshell maintains backgrounded jobs, scrollback buffer etc. I don't know if it's possible with ranger.
Offline
I'm still not sure what the difference is.
MC has a kind of built-in two-window tmux, with C-o switching between window #1 (file manager) and window #2 (subshell).
It's a convenient feature for the same reason tmux is, and it keeps the shell cwd synced with the file manager, which tmux generally can't.
The way it's implemented in mc, the whole thing sounds really wrong.
But it is convenient, and I have no idea how to do it right.
Maybe detecting enclosing tmux and using it for window switching is the right approach.
Maybe messing with ptys in the file manager is indeed the only way.
Offline
Happy Holidays!
The new ranger version 1.8 is out now, will take a while till its in the AL package repositories though.
* scope.sh is now needed for the now fully scriptable image previews
* Overhaul of version control system integration, now with threads
* Fixed ranger not finding the location of w3mimgdisplay in most cases
* Fixed many minor bugs
* Added midnight-commander like multipane view, toggleable with `~` key. It displays the current directory of all the open tabs next to each other.
* Added autodetect for 256 color support in scope.sh source code preview
* Added macro `%confdir` that expands to `~/.config/ranger` by default
* Added possibility to toggle/cycle through options with `set <option_name>!`
* Added `Mm`/`Ms` key to enable the linemode showing modification time
* Added `yt`/`dt` keys to toggle whether file is in copy/cut buffer
* Added `line_numbers` setting showing absolute/relative line numbers
* Added `Alt-Left` and `Alt-Right` key bindings to move by words in console
* Added previews for libreoffice files with `odt2txt`
* Added `preview_images_method=urxvt` option for previewing images by changing the urxvt background (requires urxvt compiled with pixbuf support)
* Added `clear_filters_on_dir_change` option
* Added Travis-CI integration
* Changed `zi` key to toggle `preview_images` option
* Improved PEP8 compliance
* Improved documentation
* Improved UI by separating file path in title bar with a space from the username/hostname for quick copy&pasting by shift+double-clicking on it.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Amazing christmas gift, thanks a lot hut!!!
Offline
My problem with ranger is this:
# pacman -S ranger
resolving dependencies...
looking for conflicting packages...
Packages (2) python-3.5.2-3 ranger-1.7.2-1
Total Download Size: 0.28 MiB
Total Installed Size: 104.33 MiB
:: Proceed with installation? [Y/n] n
Has anyone tried to rebuild Python with the minimum feature set to allow ranger/rifle to run?
Last edited by adamlau (2016-12-26 06:57:17)
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Not sure how this is relevant unless you're on some embedded device... if you are, hut wrote some ranger clone in sh.
Last edited by Alad (2016-12-25 22:11:15)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Relevant. Thanks for the pointer.
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Anyone having problems with ranger with the latest python update in [testing]? https://github.com/ranger/ranger/issues/752
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Have a question about the size counter in the bottom right corner. I don't know what to call it. When in a directory, it shows the size of all the items in the directory, but not the sud directories. Is there a way to get it to sum the sub-directories as well? For example under directory, direc1 has size 5GB, direc2 has 10GB and there is a picture of size 2.8MB. In the corner, it only shows 2.8MB sum.
I don't know what this is called.
Offline
Anyone having problems with ranger with the latest python update in [testing]? https://github.com/ranger/ranger/issues/752
Fixed in the new ranger version, 1.8.1, which was pushed on github just now. Thanks to nfnty for fixing the bug.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
With the new version, image preview with w3m no longer works for me; instead, I get the img2txt preview. I use urxvt. I tried it with the default rc.conf, with the only change being
set preview_images true
I also have
export RANGER_LOAD_DEFAULT_RC=FALSE
in my .bashrc. With the previous version, previews worked fine.
Edit:
Never mind, updated scope.sh and all is good. I like the update!
Last edited by monodromy (2017-01-11 19:29:10)
Offline