Ranger

From wikinotes

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