doc: denote link completion

This commit is contained in:
2026-02-19 16:19:18 +01:00
parent 83ea4f2bcf
commit 24cadefafc
2 changed files with 21 additions and 11 deletions

View File

@@ -32,15 +32,22 @@ the help files. This will allow you to get more help using `:help denote` or
similar commands.
### Usage
For following links, simply move your cursor to the denote link, and press
For _following links,_ simply move your cursor to the denote link, and press
`gf`.
Browsing and searching notes is implemented using the [location
This package also provides denote _link completion_ using the
[|'omnifunc'|](https://vimhelp.org/options.txt.html#%27omnifunc%27) option. So,
the link is completed after pressing `<C-X><C-O>` while typing any prefix of a
denote link `denote:<identifier>`. Even more so, if this completion is invoked
after typing `denote:<str>`, then the link is completed for denote entries
that have `<str>` as part of the title.
_Browsing_ and _searching notes_ is implemented using the [location
list](https://vimhelp.org/quickfix.txt.html#location-list).
So, after running any of the following commands, you may navigate your notes
using, e.g., `:lopen` to open the list, `:lnext` and `:lprev`, to move to the next or
previous entry (the list does not need to be opened for that), and `:lclose`
for closing the location list.
This means that you may navigate your notes using, e.g., `:lopen` to open the
list, `:lnext` and `:lprev`, to move to the next or previous entry (the list
does not need to be opened for that), and `:lclose` for closing the location
list.
#### Commands
This package defines the following user commands: