Questions tagged [ranger]
For questions about the ranger CLI file manager for Unix-like systems.
27
questions
0
votes
0
answers
9
views
How to enable file previews in Ranger running on Proxmox by default?
I installed Ranger on a Proxmox LXC (Debian 12.2), MacOS and Raspbian 11. All installed versions are 1.9.3. When running it on MacOS or on Raspbian, the file previews work fine. When I run it on ...
0
votes
1
answer
118
views
How do I get a better exploration for archives in ranger?
I'm not a fan of the default exploration for archives in Ranger, which resumes to showing the output of atool when opening the file.
I found out this avfs config, which allows you to explore an ...
0
votes
1
answer
437
views
Execute ranger command instead of shell command when opening a program in ranger
When you press l or → in ranger, it'll open the file under the cursor. What "open the file" means depends on the file type, and is defined on rifle.conf. However, I only know how to set it ...
2
votes
1
answer
881
views
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 <file>. Using custom ...
2
votes
1
answer
143
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 ...
0
votes
1
answer
668
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:
...
2
votes
0
answers
473
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 ...
1
vote
1
answer
455
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 ...
2
votes
1
answer
138
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 ...
1
vote
1
answer
953
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 ...
2
votes
1
answer
230
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 ...
2
votes
1
answer
2k
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 ...
0
votes
2
answers
3k
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 ...
2
votes
0
answers
4k
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 ...
6
votes
1
answer
8k
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 ...
4
votes
5
answers
11k
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 ...
1
vote
0
answers
357
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 ...
0
votes
4
answers
2k
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/„...
5
votes
0
answers
1k
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 ...
8
votes
1
answer
23k
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....
10
votes
2
answers
8k
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 ...
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 ...
10
votes
3
answers
13k
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 ...
17
votes
2
answers
9k
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 ...
3
votes
1
answer
4k
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 ...
5
votes
1
answer
3k
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 ...
59
votes
11
answers
32k
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 ...