An open API service indexing awesome lists of open source software.

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.

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