A nnn (=n³) plugin to copy (relative) file paths in the clipboard.
Works on both X11 and Wayland.
- Run
install.sh
. - Map to a keybinding by exporting
NNN_PLUG='c:cppath;'
- Call a first time on file A.
- Call a second time on file B.
- If A≠B, the relative path from A to B is copied in the clipboard. If A==B, then the full path of A is copied in the clipboard.