Skip to content

Instantly share code, notes, and snippets.

@fryctze
Forked from heroheman/ranger-cheatsheet.md
Last active January 31, 2021 09:10
Show Gist options
  • Save fryctze/a0520c988d13ea8f611ae0e73e97e923 to your computer and use it in GitHub Desktop.
Save fryctze/a0520c988d13ea8f611ae0e73e97e923 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
h|k|j|l parent dir | down | up | sub dir
gg go to top of list
G go t bottom of list
J | K half page down | half page up
H | L History Back | History Forward

File Operations

Shortcut Description
<Enter> Open
r open file with
z toggle settings
o change sort order
zh || C-h 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

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

Marker & Selection

Shortcut Description
m + <letter> Create Marker
um + <letter> Delete Marker
' + <letter> Go to Marker location
space Select a file
v Select files
V Toggle select files

Example for substitution

:bulkrename %s

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