We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a20539f commit 566e805Copy full SHA for 566e805
1 file changed
lua/fzf-lua/previewer/builtin.lua
@@ -1040,7 +1040,10 @@ function Previewer.buffer_or_file:set_cursor_hl(entry)
1040
local mgrep, glob_args = require("fzf-lua.providers.grep"), nil
1041
local regex = self.opts.__ACT_TO == mgrep.grep and self.opts._last_query
1042
or self.opts.__ACT_TO == mgrep.live_grep and self.opts.search or nil
1043
- if regex and self.opts.rg_glob and self.opts.glob_separator then
+ if regex and self.opts.fn_transform_cmd then
1044
+ local _, query = self.opts.fn_transform_cmd(regex, self.opts.cmd, self.opts)
1045
+ regex = query or regex
1046
+ elseif regex and self.opts.rg_glob and self.opts.glob_separator then
1047
regex, glob_args = require("fzf-lua.make_entry").glob_parse(regex, self.opts)
1048
end
1049
if regex then
0 commit comments