https://github.com/yukaii/bookmarks.kak
Another bookmark plugin for Kakoune. Implementation based on kak-harpoon.
https://github.com/yukaii/bookmarks.kak
bookmark harpoon kakoune kakoune-plugin
Last synced: 3 months ago
JSON representation
Another bookmark plugin for Kakoune. Implementation based on kak-harpoon.
- Host: GitHub
- URL: https://github.com/yukaii/bookmarks.kak
- Owner: Yukaii
- License: mit
- Created: 2025-01-18T15:22:47.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-19T08:35:36.000Z (5 months ago)
- Last Synced: 2025-03-10T15:53:49.109Z (3 months ago)
- Topics: bookmark, harpoon, kakoune, kakoune-plugin
- Language: KakouneScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bookmarks.kak
A Kakoune plugin for managing bookmarks with position tracking. Inspired by [harpoon.nvim](https://github.com/ThePrimeagen/harpoon/tree/harpoon2) but with added support for cursor position tracking.
The implementation is based on [hadronized/bookmarks.kak](https://github.com/hadronized/bookmarks.kak) and [raiguard/kak-harpoon](https://github.com/raiguard/kak-harpoon).
## Installation
### With [kak-bundle](https://codeberg.org/jdugan6240/kak-bundle)
Add this to your `kakrc`:
```kak
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' -docstring "Enter mark mode"map global mark l ':bookmarks-show-list' -docstring "List bookmarks"
map global mark a ':bookmarks-add-prompt' -docstring "Add bookmark"# Different navigation keys
map global mark 1 ':bookmarks-nav 1' -docstring "Go to bookmark"
map global mark 2 ':bookmarks-nav 2' -docstring "Go to bookmark"
# ... and so on
}
```### Manual Installation
Clone the repository and source the script in your `kakrc`:
```bash
git clone https://github.com/Yukaii/bookmarks.kak ~/.config/kak/plugins/bookmarks.kak
``````kak
source "%val{config}/plugins/bookmarks.kak/bookmarks.kak"
bookmarks-init
bookmarks-add-bindings
```## License
MIT