Merge pull request #111 from renerocksai/103-bug-headerlinks

fix: backlinks with headerlinks, closes 103
This commit is contained in:
lambtho
2022-04-17 19:59:03 +00:00
committed by GitHub

View File

@@ -1907,7 +1907,7 @@ local function ShowBacklinks(opts)
prompt_title = "Search", prompt_title = "Search",
cwd = M.Cfg.home, cwd = M.Cfg.home,
search_dirs = { M.Cfg.home }, search_dirs = { M.Cfg.home },
default_text = "\\[\\[" .. title .. "\\]\\]", default_text = "\\[\\[" .. title .. "(#.+)*\\]\\]",
find_command = M.Cfg.find_command, find_command = M.Cfg.find_command,
attach_mappings = function(_, map) attach_mappings = function(_, map)
actions.select_default:replace(picker_actions.select_default) actions.select_default:replace(picker_actions.select_default)