Ranger: Difference between revisions

From wikinotes
 
No edit summary
 
(3 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 37: Line 37:
</blockquote><!-- Images -->
</blockquote><!-- Images -->
</blockquote><!-- Configuration -->
</blockquote><!-- Configuration -->
= Usage =
<blockquote>
== Keybindings ==
<blockquote>
<syntaxhighlight lang="yaml">
S: open shell in current dir
</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 -->

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

NOTE:

doesn't work for me in st or alacritty

export W3MIMGDISPLAY_PATH=~/.bash/bin/w3imgdisplay

Usage

Keybindings

S: open shell in current dir

Bulk Rename

:bulkrename  " display selected filenames in vim, rename using vim

You 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