vis: fix shell escape and update lazyjj key

This commit is contained in:
2025-09-24 23:55:50 +02:00
parent b1f3a79744
commit 28595bbd31

View File

@@ -64,7 +64,7 @@ local function open_file_current_line(open_cmd)
end
local function escape_and_quoted(s)
return "'" .. s:gsub("'", "\\'") .. "'"
return "'" .. s:gsub("'", [['"'"']]) .. "'"
end
local function cmd_action(cmd, action)
@@ -238,7 +238,7 @@ vis.events.subscribe(vis.events.INIT, function()
vis:command('!lazygit')
end, 'lazygit')
vis:map(vis.modes.NORMAL, ' jl', function()
vis:map(vis.modes.NORMAL, ' gj', function()
vis:command('!lazyjj')
end, 'lazyjj')