fixed tabs|lines|blines with 'bat_native' when using skim

main
bhagwan 2 years ago
parent 738d6ba547
commit 4fd1af7b47

@ -262,7 +262,7 @@ M.buffer_lines = function(opts)
opts.fzf_opts['--query'] = vim.fn.shellescape(opts.search)
end
opts = core.set_fzf_field_index(opts, 3, "{..-2}")
opts = core.set_fzf_field_index(opts, 3, opts._is_skim and "{}" or "{..-2}")
core.fzf_wrap(opts, items, function(selected)
if not selected then return end
@ -348,7 +348,7 @@ M.tabs = function(opts)
opts.fzf_opts["--delimiter"] = vim.fn.shellescape('[\\):]')
opts.fzf_opts["--with-nth"] = '2..'
opts = core.set_fzf_field_index(opts, 3)
opts = core.set_fzf_field_index(opts, 3, "{}")
core.fzf_wrap(opts, contents, function(selected)

@ -162,7 +162,7 @@ M.breakpoints = function(opts)
:format(utils.ansi_codes.yellow("<Ctrl-x>")))
end
opts = core.set_fzf_field_index(opts, 3, "{..-2}")
opts = core.set_fzf_field_index(opts, 3, opts._is_skim and "{}" or "{..-2}")
core.fzf_wrap(opts, contents, function(selected)

Loading…
Cancel
Save