vis: fix shell escape and update lazyjj key

This commit is contained in:
2025-09-24 23:55:50 +02:00
parent 9edbed2349
commit bf90b5fbe9

View File

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