A short brief about ranger
- Ranger is a file manager with emphasis on using keyboard. It goes way beyond the edges, beyond you imagination.
- Important: please make sure that you caps lock is not turn on. Ranger is case-sensitive
- A good reference
Create new file/directory
- Press
Esc
- To create
- A new directory type
mkdir dir-name
- A new file type
touch file-name.ext
- A file in a directory which does not exists type
my-touch path/to/file-name.ext
Show/Hide hidden files/directories
- Press
Esc
- type
:set show_hidden!
Select multiple file or directory
- Stay on the file/directory and Press
space
Copy file/directory name into clipboard
- Stay on the file/directory
- Press
y.
Copy file/directory full path
- Stay on the file/directory
- Press
yp
Cut a file or director to another place
- Stay on the file or directory
- Press
dd
- Navigate to the target place
- Press
pp
Delete a file or directory
- Stay on the file or directory
- Press
d+shift+d and hit enter
Rename file/directory
- Stay on the file/directory
- Press
cw
- Type new name
Change file/directory name a little
- Stay on the file/directory
- Press
cw
- Change
rename to rename_append and press enter
- Update it and press enter
Search with name
- Turn off filter:
zf and press enter.
- ref
- Go into your directory
- Press
zf and type
- Press enter to keep the filtered result
See selected directory/file size:
- Stay on it and press
dc
- Read the directory size