vis: fix shell escape and update lazyjj key
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user