-
Verify
Share your idea or feature requestCurrently, when executing Only the options table is available to be passed (allowing for example to filter the picker by tags) -> As per the documentation in this repo's readme, " Inserts a link at the cursor location or around the selected text.
" params
" (optional) additional options, see https://github.com/mickael-menu/zk/blob/main/docs/editors-integration.md#zklist
" One additional option is `matchSelected` (boolean) which is only applicable to inserting a link around selected text. If `true`, the note picker will search for notes similar to the selected text. Otherwise, the note picker will load all notes to filter through.
" e.g. :'<'>ZkInsertLinkAtSelection {matchSelected = true}
:ZkInsertLink
:'<,'>ZkInsertLinkAtSelection [{options}] I've tried to pass a directory target when executing: e.g I had a look at the code and I think I found the right call:
function M.pick_notes(options, picker_options, cb)
options = vim.tbl_extend("force", { select = ui.get_pick_notes_list_api_selection(picker_options) }, options or {})
api.list(options.notebook_path, options, function(err, notes)
assert(not err, tostring(err))
ui.pick_notes(notes, picker_options, cb)
end)
end This function is called by Would it be an option to have a check before for a custom path, and if one exists, to append to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The option I was actually looking for was there all along... Explained here in docs
|
Beta Was this translation helpful? Give feedback.
The option I was actually looking for was there all along... Explained here in docs
ZkInsertLinkAtSelection { hrefs = {"target_folder"}}