Skip to content

Latest commit

 

History

History
140 lines (114 loc) · 2.72 KB

File metadata and controls

140 lines (114 loc) · 2.72 KB

Ranger: File Browsing

Basic commands

Actions

  • Space: Select - unselect file or directory
  • Del: delete specific file or directory
  • o: change sort order
  • y: copy/yank file/dir
  • p: paste what is yanked
  • dd: delete (it is in the yank register)
  • dD: delete!!
  • A: rename file/folder

Tab management

  • -n: open new tab
  • ab: switch to next tab
  • -w: close tab
  • t/gT: change tab
  • q: undo quit, restore tab
  • lt-1/Alt-9: switch to tab N

Navigation

  • h,i,j,k: navigation filesystem
  • gh: go to home directory
  • go: go to root directory
  • f: find filename
  • /: search filemame
  • n/N: next/previous
  • q: back from pager/quit pager

Help

  • 1?: keybinding help
  • 2?: command help

On files

  • Enter: open with default program
  • i: open with pager (less in general)

Advanced section

Tmux

  • w: open in new tmux window
  • f: split horizontal in tmux pane
  • v: split verical in tmux pane

Marks

  • m<Char>: set mark 'Char'
  • '<Char>: jump to mark 'Char'

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
zf + expression setting a filter list
zf + Enter Reset filter list
v select everything

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

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