mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Merge pull request #78 from nucleogenesis/opts.default_text-in-SearchNotes
Allow passing default_text opt to SearchNotes
This commit is contained in:
@@ -1587,7 +1587,7 @@ local function SearchNotes(opts)
|
||||
prompt_title = "Search in notes",
|
||||
cwd = M.Cfg.home,
|
||||
search_dirs = { M.Cfg.home },
|
||||
default_text = vim.fn.expand("<cword>"),
|
||||
default_text = opts.default_text or vim.fn.expand("<cword>"),
|
||||
find_command = M.Cfg.find_command,
|
||||
attach_mappings = function(_, map)
|
||||
actions.select_default:replace(picker_actions.select_default)
|
||||
|
||||
Reference in New Issue
Block a user