ChristianChiarulli / bookmark.nvim

Bookmark and jump between lines in the current file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📚 bookmark.nvim

Bookmark and jump between lines in the current file

getoverhere

🚧This plugin is in alpha expect bugs please report issues 🚧

Install

"ChristianChiarulli/bookmark.nvim"
"kkharji/sqlite.lua"

Setup

require("bookmark").setup {
  sign = "",
  highlight = "Function",
}

Commands

BookmarkToggle
BookmarkNext
BookmarkPrev
BookmarkList
BookmarkClear
BookmarkClearProject

FilemarkToggle
FilemarkNext
FilemarkPrev
FilemarkList

Telescope

You will need to load the extension first:

require("telescope").load_extension('bookmark')

Then call it with:

:Telescope bookmark filemarks

Database

The sqlite db is located at ~/.local/share/nvim/bookmark_db

TODO

  • telescope search through buffer bookmarks

  • fix bookmark and filemark on same line

  • annotate bookmarks

  • quickfix list of all bookmarks in project

  • telescope search through all bookmarks

  • associate marks with git hash

  • option for harpoon like behavior for filemarks

  • dynamic project directory (at least remove OS specific path use ~ instead of /Users/chris or /home/chris)

TODO (Low Priority)

  • allow user to specify where DB is saved
  • allow bookmark jumping between files
  • allow user to select from a list of predefined icons
  • parameter on create for character

About

Bookmark and jump between lines in the current file

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%