Skip to content

chemzqm/coc-bookmark

Repository files navigation

coc-bookmark

Bookmark manager extension for coc.nvim

Inspired by vim-bookmarks

Install

:CocInstall coc-bookmark

Features/Notes

  • Toggle bookmark for a line
  • Add annotation for a line
  • Navigate all bookmarks with CocList
  • Bookmark will be deleted if the line was changed

Configuration

"bookmark.enable": {
    "type": "boolean",
    "default": true,
    "description": "Whether to enable this extension"
},
"bookmark.maxsize": {
    "type": "number",
    "default": 5000,
    "description": "Maxsize of bookmark"
},
"bookmark.sign": {
    "type": "string",
    "default": "⚑",
    "description": "Bookmark icon for sign column"
},
"bookmark.signFg": {
    "type": "string",
    "default": "",
    "description": "foreground color of bookmark sign"
},
"bookmark.signBg": {
    "type": "string",
    "default": "",
    "description": "background color of bookmark sign"
}

more information, see package.json

Commands

  • :CocCommand bookmark.toggle: create/delete a bookmark
  • :CocCommand bookmark.annotate: create a bookmark with annotation

Keymaps

  • Normal mode: <Plug>(coc-bookmark-next)
  • Normal mode: <Plug>(coc-bookmark-prev)
  • Normal mode: <Plug>(coc-bookmark-toggle)
  • Normal mode: <Plug>(coc-bookmark-annotate)
nmap <Leader>bj <Plug>(coc-bookmark-next)
nmap <Leader>bk <Plug>(coc-bookmark-prev)

CocList

run :CocList bookmark to open the bookmark

  • Filter your bookmarks and perform operations via <Tab>
  • Use preview to preview the line you have marked
  • Use delete to delete a bookmark
  • Use o to jump to the line at the file

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published