Questions tagged [ranger]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Ranger key mapping move multiple selected file and move without enter the return key

I want to fast move things to different folder here is my mapping map mh shell -f mv %f /home/sln map mw shell -f mv %f /home/sln/Work map md shell -f mv %f /home/sln/Documents map mk shell -f mv %f /...
1
vote
1answer
16 views

ranger file explorer — how to change the font (ie, to this linked example)

My question: how do I change the font in Ranger? The custom colorscheme files I have downloaded don’t seem to ‘include’ their font (ie, see this one from this theme)? I suspect it may involve ...
1
vote
1answer
20 views

ranger: how to disable the preview column entirely

My question: How to turn off the preview-column (right-most column in ranger) entirely? I can’t use the solution set column_ratio 1, since I want > 1 columns for showing as parent directories. In ...
1
vote
1answer
19 views

ranger file explorer: how to change into 2 panes at most (for vertically narrow console)

I’ve scanned the ? commands inside ranger as well as some cheat sheets people made online, but to no avail. How do I change ranger to only use 2 panes (or less)? I don’t mind getting rid of the ...
1
vote
2answers
48 views

Neomutt run command to attach file on macro key press

I'm trying to use ranger to attach files to a mail in NeoMutt. What I have so far is Run ranger to select the file to attach and save its name to /tmp/muttattach with ranger --choosefile=/tmp/...
0
votes
1answer
28 views

Ranger: How can I yank the selected files from commands.py?

I copied this snipped from the arch wiki. But instead of extracting the selected files, it extracts the yanked files. So I'd like to know one of this two things: How can I make extract_here using the ...
0
votes
0answers
88 views

Can't login to MX linux, possible Xsessions issue after typing 'startx' into terminal

Preface: Ages ago I wanted to try DWM, but the only way I could get it to work was by writing exec DWM in the /etc/X11 folder. But when stopped using DWM I left all the places I also wrote that in ~/ ...
0
votes
1answer
16 views

Opening an interactive terminal from ranger

Let's say I want to open xfce4-terminal from ranger with a keybind, like map XX shell myterm Is it possible? How?
0
votes
0answers
58 views

XFCE keyboard shortcut for Ranger file manager launcher won't work

So I made a .desktop launcher for the ranger.py script (the command is './ranger.py' or python 'ranger.py' and the working directory is where the ranger.py script is). Ienter image description here ...
0
votes
1answer
26 views

What package do I need to install to get video-previews in Debian's ranger?

What package does Ranger require to generate video-image previews in Debian? I'm using the ranger from apt and when I try to view a video's thumbnail I get, Image previews in kitty require PIL (...
1
vote
1answer
33 views

How to send key bind occupied/interpreted by tmux to program running in tmux?

Let's say I'm running ranger inside tmux session, but I want to send a keyboard shortcut to ranger (e.g. Ctrl+H) which is already used in tmux. Is there a passthrough mode to send key binding to ...
1
vote
0answers
84 views

Copy any kind of file to clipboard with xclip

So, I want to be able to copy any kind of file to an X clipboard with a shell script (mostly as a means to copy files in ranger, to gui applications). So far i have this script: TYPE=$(file -b --mime-...
1
vote
3answers
402 views

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 ...
1
vote
1answer
55 views

Check if I'm in a shell through ranger

In ranger, you can hit S to jump into a shell and ctrl+D to get back to ranger. When I've been in a shell for a while and I want to jump to ranger, I'm unsure if this is a regular shell and I should ...
1
vote
1answer
166 views

Recovering mutt attachment filenames

I have a small mutt macro to save attachments using my file manager (ranger, as it happens). It looks like this: macro attach S "<pipe-message>muttsaveattach"<enter> where ...
0
votes
1answer
13 views

Pass multiple directories to be opened by ranger in single instance?

Is there some way I can pass a "list" of unrelated directories for example: /tmp/ /home/chris /home/chris/example Into ranger's interface? Similar to what can be done with ls with the -d argument.
0
votes
1answer
90 views

Remove the leftmost column from ranger file manager

There is a way I can remove the rightmost column: # Preview files on the rightmost column? # And collapse (shrink) the last column if there is nothing to preview? set preview_files false set ...
0
votes
1answer
93 views

Ranger - cd into nth folder

I found the command I want to use: cd $(ls -d */|head -n 1) and it works as expected when I do it in the terminal. However when I map it in ranger (either with map g1 cd... or map g1 shell cd...) I ...
2
votes
1answer
128 views

Ranger Run Custom .bash_profile Command

Suppose I have the following in my ~/.bash_profile file: function lazygit() { git add . git commit -a -m "$1" git push } I have run source .bash_profile and it works well in terminal on ...
1
vote
1answer
118 views

Ranger: How to Remap hjkl Keys?

I using Ranger and I am a Colemak Keyboard Layout user. I want to remap the h, j, k, and l keys to n, u, e, i keys. I tried this: issue #8 and Ranger doesn't seem to read from ~/.config/ranger/keys.py....
1
vote
0answers
87 views

jump to a directory inside of ranger

I tried :cd path but it does literally nothing. Imagine I open ranger while inside of ~/dir/, now I want to go to ~/somewhere/else/ while inside of ranger. I know I can hjjjj(whatever)lj/k(whatever)...
2
votes
3answers
2k views

Use ranger as my default file manager in i3wm

When download a file via browser, the download status message box has an option named show in folder, How can I configure it to open ranger when I click it? Reason I want to do it: I'm currently ...
1
vote
1answer
227 views

Ranger: Add Foxit pdf reader to rifle.conf

I've Zathura as my default pdf viewer which is fine. I've also installed Foxit Reader but it doesn't show up when I try to open any pdf file in ranger with r key. I tried adding following line in my ...
0
votes
1answer
871 views

ranger “set preview_files true” does not work

Since quite some time the file-preview-window in ranger stays empty. I.e. it indeed shows up but does not preview the content of text-files. Image preview and .pdf preview however does work. The ...
1
vote
2answers
205 views

How to create multiple directories in Ranger?

As in the equivalent of mkdir dir1 dir2 when running in bash. This creates two separate directories, dir1 and dir2. If you run :mkdir dir1 dir2 in ranger, it simply creates a directory called 'dir1 ...
2
votes
1answer
541 views

How do you go back to the previous directory in Ranger?

In Ranger you can go to a directory with g. When you type g it gives you a list of places you can very easily go. For example g, and then p takes me to /tmp. How do I get back to the directory I was ...
1
vote
1answer
378 views

How do I delete a single file without affecting the marked files in ranger?

As a follow up to this question, how do I delete a single file without losing the selection that I've already got? for i in $(seq 1 5); do touch "$i.jpg"; done; mkdir subdir Let's say you marked 1....
0
votes
0answers
37 views

Batch moving a custom set of images with Ranger? [duplicate]

This is a question for the Ranger (file manager) Let's say that I have a directory with five files.. for i in $(seq 1 5); do touch "$i.jpg"; done; mkdir subdir How would I move 1.jpg, and 4.jpg, ...
1
vote
2answers
886 views

Where is the editor choice kept in ranger?

On a fresh ranger install I tried to open neofetch config with ranger and selected ed to see what is it. I am glad Ctrl+D worked to exit the ed, but now ranger opens all files with it. Restarting ...
0
votes
2answers
100 views

How to change relative symlinked path to “actual” one (in ranger or terminal)

What is actual path? Consider folder A in the file system and a symlinked B to it. Consider currently in ranger (or terminal) inside a sub-directory within B such as /home/B/sub1/sub2 which is in fact ...
2
votes
1answer
69 views

How can I view current file only instead of all marked files in ranger?

In the ranger file manager, https://github.com/ranger/ranger, how can I open the currently selected file instead of all marked files? I'd like to iterate through a directory and choose whether I mark ...
-1
votes
1answer
405 views

Ranger will not preview images or text

I have tried sudo apt-get purge ranger and then reinstalling it, but I have not been able to find anything that works. My python version is 2.7.
1
vote
1answer
427 views

How to bind a keyboard shortcut in zsh to a program requiring stdin?

This is a follow-up to this question: I'm trying to create a keyboard shortcut for the terminal file manager ranger, in order to jump from the zsh prompt into the file manager with a single keystroke. ...
0
votes
1answer
404 views

Ranger, open file freeze the terminal

I set Viewnior for open image files, but when I open any image file (jpg or png) ranger stays frozen or something similar, and I only can return to ranger when I close the app that opened the file. ...
4
votes
1answer
482 views

How to “follow” symlink in Ranger to open containing directory of target?

In Ranger, I often have symlink and I want to go to the containing directory of the file that is linked to. How to do this with Ranger?
1
vote
1answer
82 views

Atom crashes after closing the file manager ranger

When I open a file with atom through ranger and than close the terminal which executes ranger, it causes the atom editor to close too, my configuration file looks like: user@computer ~ $ cat ~/....
3
votes
1answer
729 views

Default application used for “open folder” in popup menu

When I enter, for instance, xdg-mime query filetype Video/movie.mkv, the output is video/x-matroska; if I then enter xdg-mime query default video/x-matroska, the output is mplayer.desktop, and that is ...
6
votes
1answer
536 views

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

Refresh cache of Ranger file manager

How do I refresh ranger file manager? It automatically refreshes if a file is changed/edited/created/removed inside current directory, but I want to be able to force it to do so. How would I do that?
8
votes
2answers
4k views

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 /...
1
vote
1answer
2k views

Preview files in ranger

I have been able to preview images in ranger. But for some reason I don't have file preview. Not for any type of files. Not for compressed files either. I'm running linux mint and ranger v1.7.1. How ...
4
votes
1answer
2k views

Is there a way to get ranger to syntax-highlight files using the X colorscheme of the terminal?

The file manager ranger works great, and uses the normal X resources color scheme of my terminal (urxvt). But when it shows a preview of files and highlights their syntax (presumably using highlight ...
0
votes
1answer
244 views

Ranger cannot open pdf files with Foxitreader

I have the following lines in my rifle.conf for reading pdf files: ext pdf, has foxitreader, X, flag f = foxitreader -- "$@" ext pdf, has evince, X, flag f = evince -- "$@" ext pdf, has zathura, ...
0
votes
1answer
191 views

Ranger file manager becomes unresponsive on using some applications

Suppose I open a text file using Emacs or a picture using Gimp then the Ranger file manager becomes unresponsive till you close this application. However if I open the same text file say using Gedit ...
10
votes
4answers
10k views

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 ...
3
votes
3answers
1k views

Open file behavior using Ranger in Windows Subsystem for Linux

I am using Microsoft Windows ([Version 10.0.15063]) subsystem for Linux and observe an unexpected behavior when opening files using Ranger file manager in bash. For example, I have ~/.config/rifle....
0
votes
1answer
549 views

Ranger file manager custom window title

I'm using the Ranger file manager on a daily basis but there is one thing that I wish I could modify. Namely, having multiple ranger windows open, this is what the window titles look like (I'm using ...
7
votes
2answers
6k views

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 ...
24
votes
4answers
15k views

How to create a new file / directory using ranger?

I suppose I could use mkdir / touch but I'm not sure if these would go in the current directory as viewed in ranger.
1
vote
2answers
2k views

Ranger what program is opening file?

I'm using ranger and when I navigate to a folder with audio files and press enter it plays mp3 files in terminal. The terminal audio program isn't my default as when I double click from GUI a ...