nnn: Can't jump to bookmark location when the key is a digit
This is the content of my NNN_BMS variable:
export NNN_BMS="w:/media/disk2/work;2:/media/usb2"
When running in interactive mode I can’t jump to the directory that is assigned to the key 2 using <Leader>2. Instead it will select the second context. Yet if I execute it like nnn -b 2 it starts nnn in the path defined by key 2.
To get the expect behavior, I cloned this repo at master and added the following after line 4646 in nnn.c:
if (sel == SEL_LEADER)
break;
Should I turn this into a pull request? Thank you!
Operating System: Arch Linux (LTS Kernel v4.19.91)
Desktop Environment: i3
Terminal Emulator: kitty
Shell: bash or fish
Issue exists on nnn master: yes (Initially found on v2.8.1)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (11 by maintainers)
Commits related to this issue
- Fix #420: reduce Lead key to bookmark key — committed to jarun/nnn by jarun 5 years ago
- Revert "Fix #420: reduce Lead key to bookmark key" This reverts commit 1ed5febe0c298cc932a2127b8ba061fe941ea379. — committed to jarun/nnn by jarun 5 years ago
- Fix #420: simplify bookmarking, retire lead key — committed to jarun/nnn by jarun 5 years ago
@dangerware I am hoping this is fixed for good now. I have simplified the workflows greatly. The bookmark key will now handle only bookmarks. The lead key is gone.
Escfrom nav-as-you-type to jump to special keys. It took a few days to stabilize this. Please spend some time to test.@0xACE @KlzXS @annagrram please use master for your regular work so it gets tested.
Please check the help settings for keybind changes. Lead key is gone so could make some sane changes now.