Skip to content

Yukaii/bookmarks.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

bookmarks.kak

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.

Installation

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
}

Manual Installation

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

License

MIT

About

Another bookmark plugin for Kakoune. Implementation based on kak-harpoon.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published