Questions tagged [ranger]

Ranger is a terminal-based file manager with vi-style key bindings.

Ranger is a terminal-based file manager with vi-style key bindings.

External links

90 questions
55
votes
7 answers

Ranger cd into a folder (and invoke shell)?

I'm using Ranger to navigate around my file system. Is there a shortcut where I cd into a folder without leaving Ranger (as in open bash with a location of a folder found by navigating in Ranger)?
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
40
votes
4 answers

How to create a new file or directory using ranger?

I want to create a new file or directory with ranger. I suppose I could use mkdir or touch, but I'm not sure if these would go in the current directory as viewed in ranger.
Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
32
votes
2 answers

How can I move all `marked` files to another directory in ranger?

When I select multiple files within ranger (using or V), how do I move these selected files to another directory? I've tried to use dd and pp, but this only moves the file that's currently highlighted.
Matt
  • 757
  • 1
  • 8
  • 9
30
votes
1 answer

Execute command on ranger selection?

I haven't found an advanced tutorial on ranger yet, so my question is: is it possible to execute a command on a selection of files in ranger? If so, how would I do that?
25
votes
4 answers

How to change the default text editor in ranger?

Currently, ranger will only open text files with nano, and I want it to open them with vim. As per the Arch Wiki I have tried adding has xdg-open, flag f = xdg-open "$1" ext txt = vim "$@" to rifle.conf, but that didn't work.
Display name
  • 1,267
  • 2
  • 14
  • 22
20
votes
1 answer

What does the the star or asterisk indicate in Ranger?

What does the red star mean in the Ranger file navigator? Result of running ls -la in same directory: drwxrwxr-x 2 philip philip 4096 Oct 18 23:45 . drwxrwxr-x 5 philip philip 4096 Oct 18 23:36 .. -rw-rw-r-- 1 philip philip 82 Oct 18 23:44…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
17
votes
2 answers

How to enable syntax highlighting in ranger preview?

I have seen some screenshots where ranger uses syntax-highlighting in its preview window. So I was wondering how to enable this feature and found out that I need the scope.sh file in the directory /home/user/.config/ranger/scop.sh, which will be…
PatrickSteiner
  • 581
  • 3
  • 10
  • 20
15
votes
3 answers

Ranger - open_with without suspending

When I open a file into ranger with a GUI application not listed in the rifle.conf file (i.e. using the open_with command), the ranger terminal window gets "suspended" until I close the GUI app. For this reason, I'd like to have a way to open files…
tigerjack
  • 361
  • 1
  • 4
  • 12
14
votes
4 answers

Preview PDF as image in ranger

How can I preview PDFs as images in ranger? By default it uses pdftotext (in the scope.sh preview configuration file), but I would like to use pdfimages, pdftoppm, or another graphical solution instead. The ArchWiki suggests a method using pdftoppm,…
gmarmstrong
  • 1,183
  • 1
  • 15
  • 35
13
votes
2 answers

How to refresh or reload rc.conf in ranger file manager?

At the moment I am constantly changing the rc.conf and rifle.conf files, but every time I want to test the new configuration I need to exit ranger and start again. Is there a solution for this? In vim I use :source ~/.vimrc to reload the…
milarepa
  • 1,456
  • 2
  • 16
  • 22
12
votes
3 answers

Search and select all matching files in Ranger

Say that I have the following files in the current directory : aa01.txt aa02.txt bb01.txt bb02.txt cc01.txt ... Is there a way I can search for a given pattern and select ALL the matching files at once (not just selecting the first matching file…
Janthelme
  • 221
  • 2
  • 5
11
votes
2 answers

How to cancel a copy operation in ranger file manager?

When I move files and paste in another location, sometimes I make a mistake typing yy instead dd. Then I can't find any means to cancel the copy operation.
milarepa
  • 1,456
  • 2
  • 16
  • 22
9
votes
1 answer

xmodmap key bindings reset when I open a new tab in the shell

When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. This is what the terminal spits out: xmodmap: …
Fallencent
  • 91
  • 3
9
votes
2 answers

Sort files in specific folder with ranger

I would like to sort the files in my Screenshots folder by date, so I added the following to my rc.conf: setlocal PATH=~/Screenshots sort mtime setlocal PATH=~/Screenshots sort_reverse False But it does not seem to work. Did I make a syntax…
Philipp L.
  • 167
  • 1
  • 2
  • 9
9
votes
2 answers

ranger image-preview with transparent terminal background

I like the image-preview in ranger, but I also like my terminal transparent. Is there really no way to get the image-preview work with w3m and transparent background? (I'm willing to change my terminal-emulator if that's necessary, currently urxvt)
makim
  • 563
  • 2
  • 11
  • 31
1
2 3 4 5 6