rename
This commit is contained in:
parent
b6b99a55c9
commit
0b618be0af
|
@ -322,7 +322,7 @@ function run_command(cmd, args)
|
|||
elseif cmd == 'back to surface' then
|
||||
command.back_to_surface()
|
||||
elseif cmd == 'edit note' or cmd == 'edit note at cursor' then
|
||||
command.edit_note_at_cursor()
|
||||
command.edit_note()
|
||||
elseif cmd == 'exit editing' then
|
||||
command.exit_editing()
|
||||
elseif cmd == 'close column surrounding cursor' then
|
||||
|
@ -425,7 +425,7 @@ function command.close_column_surrounding_cursor()
|
|||
end
|
||||
end
|
||||
|
||||
function command.edit_note_at_cursor()
|
||||
function command.edit_note()
|
||||
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
|
||||
assert(not pane.editable)
|
||||
stop_editing_all()
|
||||
|
|
4
main.lua
4
main.lua
|
@ -691,7 +691,7 @@ function keychord_pressed_in_maximize_mode(chord, key)
|
|||
end
|
||||
else
|
||||
if chord == 'C-e' then
|
||||
command.edit_note_at_cursor()
|
||||
command.edit_note()
|
||||
elseif chord == 'C-c' then
|
||||
edit.keychord_pressed(pane, chord, key)
|
||||
end
|
||||
|
@ -739,7 +739,7 @@ function keychord_pressed_in_normal_mode_with_immutable_pane(pane, chord, key)
|
|||
return
|
||||
end
|
||||
if chord == 'C-e' then
|
||||
command.edit_note_at_cursor()
|
||||
command.edit_note()
|
||||
elseif chord == 'C-c' then
|
||||
edit.keychord_pressed(pane, chord, key)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user