Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemzqm/coc-bookmark
https://github.com/chemzqm/coc-bookmark
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/chemzqm/coc-bookmark
- Owner: chemzqm
- Created: 2019-07-23T20:45:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T23:03:55.000Z (over 5 years ago)
- Last Synced: 2024-10-29T12:56:25.161Z (about 2 months ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# coc-bookmark
Bookmark manager extension for [coc.nvim](https://github.com/neoclide/coc.nvim)
Inspired by [vim-bookmarks](https://github.com/MattesGroeger/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
```jsonc
"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](https://github.com/voldikss/coc-bookmark/blob/master/package.json)
## Commands
- `:CocCommand bookmark.toggle`: create/delete a bookmark
- `:CocCommand bookmark.annotate`: create a bookmark with annotation## Keymaps
- Normal mode: `(coc-bookmark-next)`
- Normal mode: `(coc-bookmark-prev)`
- Normal mode: `(coc-bookmark-toggle)`
- Normal mode: `(coc-bookmark-annotate)````vim
nmap bj (coc-bookmark-next)
nmap bk (coc-bookmark-prev)
```## CocList
run `:CocList bookmark` to open the bookmark
- Filter your bookmarks and perform operations via ``
- 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