Add with live grep option to insert link function and find notes function (closes #188)

* add with_live_grep option to InsertLink function
* add with_live_grep option to FindNotes function
* update documents
This commit is contained in:
Hayao Kimura ( hachi )
2022-11-28 01:33:54 +09:00
committed by GitHub
parent 04deff8579
commit 9de25d1657
3 changed files with 88 additions and 50 deletions

View File

@@ -652,7 +652,8 @@ The plugin defines the following functions:
- **note**:
- this function accepts a parameter `{i}`. If `true`, it will enter input mode by pressing the 'A' key. This is
useful when being used in a simple `inoremap` key mapping like shown in [Bind it](#3-bind-it).
- example: `insert_link({ i=true })`
- example: `insert_link({ i=true })`
- this function accepts a parameter `{with_live_grep}`. If `true`, it will use live_grep picker and you can search file by file contents.
- `follow_link()`: take text between brackets (linked note) or of a tag and open a Telescope file finder with it: selects note to
open (incl. preview) - with optional note creation for non-existing notes, honoring the configured template
- **note**: