Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ranger]

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

0
votes
0answers
22 views

How do I delete a single one-off file without disturbing the batch-job I'm making?

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
11 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, ...
0
votes
2answers
35 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
16 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
22 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
40 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.
0
votes
1answer
36 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
52 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. ...
1
vote
1answer
54 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
47 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 ~/....
2
votes
1answer
224 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 ...
2
votes
0answers
65 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. ...
0
votes
1answer
182 views

Refresh the 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?
0
votes
1answer
566 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
656 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 ...
0
votes
1answer
660 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
116 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
95 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 ...
8
votes
4answers
3k 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 ...
1
vote
2answers
498 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
288 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 ...
3
votes
2answers
2k 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 ...
9
votes
2answers
3k 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
746 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 ...
4
votes
1answer
6k views

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

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

When I select multiple files within ranger (using <Space> 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 ...
5
votes
1answer
2k views

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 ...
0
votes
0answers
53 views

Ranger show next / prev tab binds do not work

I have updated the rc.conf file : map <a-right> tab_move 1 map <a-left> tab_move -1 But these keyboard shortcuts do not work. They do work if I substitute the left and right to other ...
3
votes
1answer
118 views

Store opened tabs of sessions into file

As per the title, is it possible to store the current ranger session into a file so to restore it at a later point in time? EDIT: I ask this question because I use many different ranger sessions and ...
14
votes
3answers
5k views

Ranger cd into a folder?

I'm using Ranger to navigate around my file system. Is there a shortcut where I cd into that folder?
1
vote
2answers
490 views

How to script ranger to copy a file to another directory via python

ranger is a command line file manager that can be extended with python. The commands.py file contains examples of the built in commands: https://github.com/ranger/ranger/blob/master/ranger/config/...
2
votes
0answers
53 views

“Union” based file manager

I would like to be able to perform actions on files in different locations within a common window/container. Let's say I have the following directory structure: └── DCIM    ├── browser-photos    │ ...
2
votes
2answers
711 views

“scope.sh” is lacking for ranger file manager

I think the title describes the question in this case. Ranger is a file manager using Miller columns to navigate between the tree. It has an external script called scope.sh that previews files ...
3
votes
2answers
128 views

Bicon. Incorrect exit from shell, open in ranger

Installed bicon-git, this is written in .bashrc # hack to launch bicon if not launched if ! [[ "$(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=)" =~ 'bicon'* ]]; then bicon.bin fi Launch ranger ...
4
votes
1answer
964 views

What does the the red star / asterix 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 .. -...
2
votes
2answers
1k views

How do I find out what program ranger is using to preview a file?

I am using the ranger terminal based file manager to navigate and view files. When I navigate to a folder which contains pdf files, and position the cursor on a PDF file ranger reads the file and ...
5
votes
1answer
1k views

Open multiple files from ranger in vim

When I highlight multiple files in ranger from the same dir, I can open them all in vim with r and than 0 or @ and than add vim. But if I highlight files from different dirs, than this doesn't work. ...
0
votes
1answer
107 views

shell commands with quotation marks in ranger

I like to open the highlighted file in ranger in split of remote vim session. :shell vim --remote-send "<C-\><C-n>:vsp %d/%f<CR>" Rather than file /path/to/directory/highlighted-...
9
votes
1answer
7k views

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

open(1) in rifle.conf for ranger on OS X

ranger ~/.config/ranger/rifle.conf For simplicity What one line – in the rifle configuration file – could cause open(1) to be used for all types of file? Background https://forums.pcbsd.org/...
1
vote
2answers
933 views

Ranger : do not try to display large files (preview)

I am using Ranger as a file explorer, and by the way it's great... I have an issue because Ranger can display a preview of the file currently selected. Which is quite useful but becomes problematic ...
3
votes
1answer
5k views

Set Environment Variable for Ranger File Manager

I've recently stumbled across ranger file manager and immediately took a liking to it but I'm having a problem. How is it possible to change environment variables for ranger? I want my default editor ...
7
votes
2answers
884 views

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.
8
votes
2answers
10k views

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

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

ranger: open many files with mplayer

I use the file explorer called ranger and I wonder if it is possible to open many files in different directory with mplayer? What I can already do is to select all the files (pressing v) from one ...