file actions: only parse ctags from tags|btags

main
bhagwan 2 years ago
parent 1f75958d33
commit e1f13f882e

@ -86,7 +86,7 @@ M.vimcmd_file = function(vimcmd, selected, opts)
local is_term = utils.is_term_buffer(0)
for i = 1, #selected do
local entry = path.entry_to_file(selected[i], opts.cwd, opts.force_uri)
entry.ctag = path.entry_to_ctag(selected[i])
entry.ctag = opts._ctag and path.entry_to_ctag(selected[i])
local fullpath = entry.path or entry.uri and entry.uri:match("^%a+://(.*)")
if not path.starts_with_separator(fullpath) then
fullpath = path.join({opts.cwd or vim.loop.cwd(), fullpath})

@ -139,6 +139,8 @@ local fzf_tags = function(opts)
end)()
end
-- signal actions this is a ctag
opts._ctag = true
opts = core.set_header(opts, 2)
opts = core.set_fzf_line_args(opts)
return core.fzf_files(opts, contents)

Loading…
Cancel
Save