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
pinned
file in~/.config/ranger
to save the pinned path
- Copy
plugins/pin.py
into.config/ranger/plugins
- Copy
colorschemes/pin.py
into.config/ranger/colorschemes
alternative: create your own colorscheme to handle the newpin
context - 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 pin
if you're using the provided colorscheme
- mandatory: modify the sort function:
++
shortcut to pin--
shortcut to unpin