Skip to content

Commit c3a3b95

Browse files
committed
chore: skim v0.14.3 adjustments
1 parent 461c9a9 commit c3a3b95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/fzf-lua/actions.lua

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ M.expect = function(actions, opts)
3232
v.prefix and "+" or "",
3333
v.prefix and v.prefix:gsub("accept$", ""):gsub("%+$", "") or ""
3434
))
35+
elseif opts.__SK_VERSION and opts.__SK_VERSION >= 0.14 then
36+
-- sk 0.14 deprecated `--bind`, instead `accept(<key>)` should be used
37+
-- skim does not yet support case sensitive alt-shift binds, they are ignored
38+
-- if k:match("^alt%-%u") then return end
39+
if type(v.prefix) == "string" and not v.prefix:match("%+$") then
40+
v.prefix = v.prefix .. "+"
41+
end
42+
table.insert(binds, string.format("%s:%saccept(%s)", k, v.prefix or "", k))
3543
elseif k ~= "enter" then
3644
-- Skim does not support case sensitive alt-shift binds
3745
-- which are supported with fzf since version 0.25

0 commit comments

Comments
 (0)