Simple plugin to add a pin feature to ranger, based on the scaffold plugin by hut.
This plugin defines:
- two commands to pin and unpin items
- a new sorting function named
pin, based onpathname_natural_lower(aka natural, case insensitive) - a new colorscheme context named
pin - a new
pinnedfile in~/.config/rangerto save the pinned path
- Copy
plugins/pin.pyinto.config/ranger/plugins - Copy
colorschemes/pin.pyinto.config/ranger/colorschemes
alternative: create your own colorscheme to handle the newpincontext - Update
.config/ranger/rc.conf- mandatory: modify the sort function:
set sort pin - optional: modify the colorscheme to ensure the pinned items are colorized
set colorscheme pinif you're using the provided colorscheme
- mandatory: modify the sort function:
++shortcut to pin--shortcut to unpin