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
|
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')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user