Questions tagged [ranger]

For questions about the ranger CLI file manager for Unix-like systems.

ranger (lowercase r), is a free CLI (console) file manager for Unix-like systems. It has a VIM-like user interface. ranger is available in the public repositories of most of the major Linux distributions.

Information links:

27 questions
60
votes
11 answers

How to exit the Ranger file explorer back to command prompt but keep the current directory?

I am using Ranger terminal file explorer from within a linux terminal. Say I start from command prompt in home directory and launch ranger user@/home/user $ ranger ranger opens..... and within the ranger program I explore…
20
votes
2 answers

How can I unselect items in Ranger (the file manager)?

I am using the Ranger file manager, and I like it quite a lot. I often use the :mark command to select specific items in the current folder. Now comes the problem: Once I am done doing whatever I wanted with them, I don't know how to unselect the…
Haumich
  • 313
11
votes
1 answer

How to change the default document viewer in ranger?

How do I change the default document viewer in the file-manager "ranger"? By pressing [R] it is only possible to choose how to open the document for this one time, but the choice will not be safed. E.g. my default viewer for plain text files is…
11
votes
2 answers

How to open a file in ranger as root?

How do I open a file in the file-manager "ranger" with superuser rights? While ":open_with vim" opens the file as none root with vim, I am looking for something like ":open_with sudo vim", but that does not work.
10
votes
3 answers

How to move directories in Ranger?

I'm using Ranger file manager. I want to move selected (marked) directories to the path provided. I've been moving directories using dd and pp but it requires the user to go to the destination directory to "paste" them into. There's a undocumented…
user373230
6
votes
1 answer

Ranger file manager: how to mark files from:to

I'm using Ranger as my main file manager on ubuntu. What i'd like to do is select the first file in a list for marking/selection, then a last one and have all in between marked as well. Similar to using a visual file manager you'd click the first…
Maurits
  • 65
6
votes
5 answers

Ranger : Open with vim in new window

Using : st, Ranger, vim, i3 With most files when I open them with ranger it opens in a new window. However, when I try to open a file with vim it opens it in the current terminal which is currently running ranger. I understand why it does it, I'm…
Thamoo
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Is it possible to navigate into zip files with Ranger?

I'm starting to use Ranger file manager, but I'm missing a nice feature present in Total (and Double) Commander that I really like. It is the possibility of navigating into zip files (and other kind of archives) as if they were normal folders,…
6
votes
3 answers

How to force ranger to edit html files?

I am using ranger and every time I try to edit an HTML file ranger will open that file with the browser instead of editing it with Vim. How can I force ranger to edit HTML instead of loading them in my browser?
J0nZ3t4
  • 63
5
votes
1 answer

How to define new commands in the ranger file manager?

I would like the ability to define new commands in the ranger file manager by typing something like: :newcmd myarg and run arbitrary code with it. The command definition should also have access to the program's state, e.g., current directory and…
3
votes
1 answer

ranger not opening pdf files?

My pdf reader is mupdf. It works and is on my PATH. My rifle.conf is (relevant part): #------------------------------------------- # Documents …
Alex
  • 2,106
2
votes
1 answer

How do I get a better preview for archives in ranger?

I'm not a fan of the default preview for archives in Ranger, and I want to change it. As an example, for .zip files, the preview displays the plain output of unzip -l . Using custom commands however, it's possible to display a tree view of the…
2
votes
1 answer

How to select text from a text file in ranger preview

Yeah, the title says it all :-) Just to clarify, I would like to open ranger, scroll through some text files while seeing the contents in the right pane and be able to select potions of the current file eg. with my mouse pointer to yank/copy them…
2
votes
0 answers

How to make ranger's image/pdf preview persist in terminal?

Just got image/pdf preview working in ranger, but I've noticed that when moving my mouse away from the ranger terminal window, the preview disappears. More annoying than this is that you can't run commands with the preview still displayed. For…
algae
  • 58
2
votes
1 answer

What is ranger's show_hidden_bookmarks setting good for?

Ranger's man page states: show_hidden_bookmarks [bool] Show dotfiles in the bookmark preview window? (Type ') I played around with it but can not figure out what it actually does. My bookmark preview window looks exactly the same no matter if I…
dirdi
  • 3,317
1
2