Skip to content

Instantly share code, notes, and snippets.

@navakelvin
Forked from heroheman/ranger-cheatsheet.md
Created October 10, 2022 22:53
Show Gist options
  • Save navakelvin/7927a9f7f4aa0bc6bda1bd563f4793a7 to your computer and use it in GitHub Desktop.
Save navakelvin/7927a9f7f4aa0bc6bda1bd563f4793a7 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

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
/ 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

---|--- %f | Substitute highlighted file %d | Substitute current directory %s | Substitute currently selected files %t | Substitute currently tagged files

Example for substitution

:bulkrename %s

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