Ranger: Difference between revisions
From wikinotes
(→Usage) |
|||
Line 55: | Line 55: | ||
You can perform more complicated bulk renames with vim itself. | You can perform more complicated bulk renames with vim itself. | ||
<syntaxhighlight lang="vim"> | <syntaxhighlight lang="vim"> | ||
" populate a buffer with ls results | |||
:r !ls */*.flac | |||
" create cli commands for each file | |||
:%s/.*/mv & &/ | |||
" execute cli commands | |||
:w !sh | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Bulk Rename --> | </blockquote><!-- Bulk Rename --> | ||
</blockquote><!-- Usage --> | </blockquote><!-- Usage --> |
Revision as of 16:33, 13 February 2022
A commandline file manager. Similar to vifm.
Uses w3m powered image previews, bat powered file previews, etc.
Documentation
github https://github.com/ranger/ranger official docs https://github.com/ranger/ranger/wiki/Official-user-guide official wiki https://github.com/ranger/ranger/wiki
Install
sudo pacman -S ranger
Configuration
Images
If images flicker in your terminal, see fix within w3m.
Use shellscript to add delay to image rendering.
See https://github.com/alacritty/alacritty/issues/1021NOTE:
doesn't work for me in st or alacritty
export W3MIMGDISPLAY_PATH=~/.bash/bin/w3imgdisplay
Usage
Keybindings
S: open shell in current dirBulk Rename
:bulkrename " display selected filenames in vim, rename using vimYou can perform more complicated bulk renames with vim itself.
" populate a buffer with ls results :r !ls */*.flac " create cli commands for each file :%s/.*/mv & &/ " execute cli commands :w !sh