Ranger: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
A commandline file manager. Similar to [[vifm]].<br> | A commandline file manager. Similar to [[vifm]] and [[nnn]].<br> | ||
Uses [[w3m]] powered image previews, [[bat]] powered file previews, etc. | Uses [[w3m]] powered image previews, [[bat]] powered file previews, etc. | ||
Line 39: | Line 39: | ||
= Usage = | = Usage = | ||
<blockquote> | |||
== Keybindings == | |||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
S: open shell in current dir | S: open shell in current dir | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Keybindings --> | |||
== Bulk Rename == | |||
<blockquote> | |||
<syntaxhighlight lang="vim"> | |||
:bulkrename " display selected filenames in vim, rename using vim | |||
</syntaxhighlight> | |||
You can perform more complicated bulk renames with vim itself. | |||
<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> | |||
</blockquote><!-- Bulk Rename --> | |||
</blockquote><!-- Usage --> | </blockquote><!-- Usage --> |
Latest revision as of 16:02, 6 June 2022
A commandline file manager. Similar to vifm and nnn.
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