Questions tagged [ranger]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

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 ...
user avatar
0 votes
1 answer
311 views

Where is the executable file of Kali Linux on Windows?

I would like to add a shortcut in Windows10 using DisplayFusion to launch WSL Kali Linux and directly open the file manager ranger. Example: This works quite well for launching a new firefox tab: ...
user avatar
2 votes
0 answers
270 views

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 ...
user avatar
  • 33
1 vote
1 answer
272 views

Scrambled text preview of pdf files in ranger

I'm using ranger to preview/open and rename a number of pdf files. However if the file is open and I navigate back to the terminal window running ranger and then scroll to another file, the text ...
user avatar
  • 33
2 votes
1 answer
79 views

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 ...
user avatar
  • 2,888
0 votes
1 answer
413 views

How to used copied file name using "yn" command in ranger

I am using ranger file manager and I came across a command to copy the filename. How do I use this yank file name in other command? I mean, read from clipboard. I tried using Shift+Insert. I am not ...
user avatar
  • 175
2 votes
1 answer
130 views

Ranger file manager: how to cycle through files

I am trying to edit my ranger config so that the "cursor" can cycle through files, meaning that basically: when the first item (file/directory) is selected and you press k or ↑ you go to the ...
user avatar
  • 23
1 vote
1 answer
1k views

Ranger image preview not working on Iterm2

I could not make ranger preview images on iterm2. I have set set preview_images true and set preview_images_method iterm2 in ~/.config/ranger/rc.conf. but a broken image appears. Have anyone ...
user avatar
  • 111
0 votes
2 answers
2k views

How to copy file path with ranger on SSH

I login into my machine via SSH, and use Ranger as a file manager. When I use commands of copying file path like yn, the name is not copied to the clipboard. How can I make it being copied to the ...
user avatar
  • 131
2 votes
0 answers
3k views

Customize file colors in ranger terminal file manager

I've been using ranger for a couple of days now, and I started customizing it to my needs. I have now the devicons plugin which shows a glyphs next the file name, but I don't know where I can change ...
user avatar
  • 131
4 votes
1 answer
5k views

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 ...
user avatar
  • 45
4 votes
5 answers
8k views

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 ...
user avatar
  • 51
2 votes
0 answers
249 views

Ranger refuses to open in $HOME when opened with DWM shortcut

I'm currently using DWM as my window manager, and for convenience I'd like to be able to open a seperate instance of my terminal (ST) that automatically opens ranger for me. I mapped a custom ...
user avatar
0 votes
3 answers
1k views

Open ranger File-Manager in specific Directory

I use ranger as my file-manager and was looking for an option that i can pass to ranger, that let‘s me open ranger in a given directory, something like ranger —specfic-directory=„/home/tim/literature/„...
user avatar
  • 227
5 votes
0 answers
869 views

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 ...
user avatar
6 votes
1 answer
18k views

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....
user avatar
9 votes
2 answers
6k views

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 ...
user avatar
6 votes
3 answers
2k views

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 ...
user avatar
  • 63
9 votes
3 answers
10k views

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 ...
user avatar
15 votes
2 answers
7k views

unselect items in Ranger (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. And now comes the problem: Once I am done doing whatever I ...
user avatar
  • 163
3 votes
1 answer
3k views

ranger not opening pdf files?

My pdf reader is mupdf. It works and is on my PATH. My rifle.conf is (relevant part): #------------------------------------------- # Documents ...
user avatar
  • 2,026
4 votes
1 answer
2k views

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 ...
user avatar
51 votes
11 answers
26k views

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 ...
user avatar