A Kakoune plugin for managing bookmarks with position tracking. Inspired by harpoon.nvim but with added support for cursor position tracking.
The implementation is based on hadronized/bookmarks.kak and raiguard/kak-harpoon.
With kak-bundle
Add this to your kakrc
:
bundle bookmarks "https://github.com/Yukaii/bookmarks.kak" %{
# Add default keybindings
bookmarks-add-bindings
# or do your custom mode mapping
declare-user-mode mark
map global user m ': enter-user-mode mark<ret>' -docstring "Enter mark mode"
map global mark l ':bookmarks-show-list<ret>' -docstring "List bookmarks"
map global mark a ':bookmarks-add-prompt<ret>' -docstring "Add bookmark"
# Different navigation keys
map global mark 1 ':bookmarks-nav 1<ret>' -docstring "Go to bookmark"
map global mark 2 ':bookmarks-nav 2<ret>' -docstring "Go to bookmark"
# ... and so on
}
Clone the repository and source the script in your kakrc
:
git clone https://github.com/Yukaii/bookmarks.kak ~/.config/kak/plugins/bookmarks.kak
source "%val{config}/plugins/bookmarks.kak/bookmarks.kak"
bookmarks-init
bookmarks-add-bindings
MIT