-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
fzf_exec(cmd, { actions = { enter = function() ... end }) Use
|
Beta Was this translation helpful? Give feedback.
-
Why don’t you use require("fzf-lua").grep(({ search = string.format("(%s|%s)", word1, word2), no_esc=true }) |
Beta Was this translation helpful? Give feedback.
enter
,ctrl-s
...)Use
:helpgrep actions.file_edit
, you will find more builtin actions.your line format didn't provide a standard format that fzf-lua actions can parse. (so the builtin actions won't work).
(And since you didn't provide a filename each line: it's also impossible to get where the file is, since fzf-lua didn't store entry internally, they are streaming in another fzf process... if you want to hide filename? you can use
fzf_opts.["--with-nth"]
, checkoutman fzf
for details about that).I personally think there's some (maybe) alternatives to your workflow...
fzf-lua…