initial support for #36 : pickers can now show the number of links and

backlinks if opts.show_link_counts is set. Which it is for the 'link
search' following the tag selection.
This commit is contained in:
Rene Schallner
2021-12-13 07:38:51 +01:00
parent 0803d54f62
commit 89191a1c84
3 changed files with 468 additions and 40 deletions

View File

@@ -21,6 +21,7 @@ local function command_find_all_tags(opts)
return "rg", { "--vimgrep", "-o", re, "--", opts.cwd }
end
-- strips away leading ' or " , then trims whitespace
local function trim(s)
if s:sub(1, 1) == '"' or s:sub(1, 1) == "'" then
s = s:sub(2)