Bookmark manager extension for coc.nvim
Inspired by vim-bookmarks
:CocInstall coc-bookmark
- Toggle bookmark for a line
- Add annotation for a line
- Navigate all bookmarks with CocList
- Bookmark will be deleted if the line was changed
"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
:CocCommand bookmark.toggle
: create/delete a bookmark:CocCommand bookmark.annotate
: create a bookmark with annotation
- 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)
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
MIT