Skip to content

Instantly share code, notes, and snippets.

@android10
Forked from heroheman/ranger-cheatsheet.md
Last active October 15, 2023 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save android10/13ef739eac0ceebe7e5b04ce9cfd8016 to your computer and use it in GitHub Desktop.
Save android10/13ef739eac0ceebe7e5b04ce9cfd8016 to your computer and use it in GitHub Desktop.
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts

Movement

Shortcut Description
k up
j down
h parent directory
l subdirectory
gg go to top of list
G go t bottom of list
J half page down
K half page up
H History Back
L History Forward
~ Switch the view

File Operations

Shortcut Description
<Enter> Open
r open file with
z toggle settings
o change sort order
zh view hidden files
cw rename current file
yy yank / copy
dd cut
pp paste
/ search for files :search
n next match
N prev match
<delete> Delete

Commands

Shortcut Description
: Execute Range Command
! Execute Shell Command
chmod Change file Permissions
du Disk Usage Current Directory
S Run the terminal in your current ranger window (exit to go back to ranger)

Tabs

Shortcut Description
C-n Create new tab
C-w Close current tab
tab Next tab
shift + tab Previous tab
alt + [n] goto / create [n] tab

File substituting

Shortcut Description
%f Substitute highlighted file
%d Substitute current directory
%s Substitute currently selected files
%t Substitute currently tagged files

Example for substitution

:bulkrename %s

File selection

Shortcut Description
space Select/unselect file/dir
V Select file/dir
v Invert current selection

Marker

Shortcut Description
m + <letter> Create Marker
um + <letter> Delete Marker
' + <letter> Go to Marker
t tag a file with an *
t"<any> tag a file with your desired mark

thx to the comments section for additional shortcuts! post your suggestions there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment