Put them on the menu as well as the palette. And of course, allow them to be selected like first-class commands. Surprisingly this seems to make sense for every shortcut.
ZUVS2754WHE4L3SMNFKGY5ZVBTIXUCYD3OVPDJBQM3AKPHSPMC3QC
F7JBFZFRALHRUTYYHJ2J7OBBB5WYPJBDTLDLZAMTVC3FUVJ7MAIAC
DFO5SFDTU6GR5XQ4X5U6I2BENQNQP3M4EUUQ2E2DQEB3YQYS2WIAC
AUE2Y6HE5AIZVFO6EGLYNXKBDXGXJKDURTA4CFAEX6ZWRZKUCMUQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
2S7DYJ57LKAZHZ4CZCCAFWDMOUPUXPJNTDYD4FJQA32SFVUCDOJQC
YKRUNSPXQMYUZM2HC2BWRL3OLVF5X3Y3XASG7JCT4TW4VUHZD6ZAC
SPTL7VK47SAGTCGQDCQWMEFC43KWJNWCL76NSYHEVBENHIWKRWNAC
5O356ZWY6DCM3Y6VFZPYQY5AIHIN6JGZDGLXU5DL6LWTFNDDFPFQC
if not pane.editable then
local left_sx = left_edge_sx(Cursor_pane.col)
local up_sy = up_edge_sy(Cursor_pane.col, Cursor_pane.row)
if should_show_column(left_sx) and should_show_pane(pane, up_sy) then
add_hotkey_to_menu('ctrl+e: edit')
add_panning_hotkeys_to_menu()
end
add_hotkey_to_menu('x/X: narrower/wider columns')
else
if pane.cursor_x >= 0 and pane.cursor_x < App.screen.width and pane.cursor_y >= Header_height and pane.cursor_y < App.screen.height then
add_hotkey_to_menu('ctrl+e: stop editing')
if Display_settings.mode == 'normal'
then
if not pane.editable then
local left_sx = left_edge_sx(Cursor_pane.col)
local up_sy = up_edge_sy(Cursor_pane.col, Cursor_pane.row)
if should_show_column(left_sx) and should_show_pane(pane, up_sy) then
add_hotkey_to_menu('ctrl+e: edit')
add_panning_hotkeys_to_menu()
end
add_hotkey_to_menu('x/X: narrower/wider columns')
add_panning_hotkeys_to_menu()
if pane.cursor_x >= 0 and pane.cursor_x < App.screen.width and pane.cursor_y >= Header_height and pane.cursor_y < App.screen.height then
add_hotkey_to_menu('ctrl+e: stop editing')
add_hotkey_to_menu('ctrl+f: find')
add_hotkey_to_menu('alt+left alt+right: prev/next word')
add_hotkey_to_menu('ctrl+z ctrl+y: undo/redo')
add_hotkey_to_menu('ctrl+x ctrl+c ctrl+v: cut/copy/paste')
else
add_panning_hotkeys_to_menu()
end
-- editing
elseif cmd == 'find in note' then
command.send_key_to_current_pane('C-f', 'f')
elseif cmd == 'copy selection to clipboard' then
command.send_key_to_current_pane('C-c', 'c')
elseif cmd == 'cut selection to clipboard' then
command.send_key_to_current_pane('C-x', 'x')
elseif cmd == 'paste from clipboard' then
command.send_key_to_current_pane('C-v', 'v')
elseif cmd == 'undo' then
command.send_key_to_current_pane('C-z', 'z')
elseif cmd == 'redo' then
command.send_key_to_current_pane('C-y', 'y')
elseif cmd == 'cursor to next word' then
command.send_key_to_current_pane('M-right', 'right')
elseif cmd == 'cursor to previous word' then
command.send_key_to_current_pane('M-left', 'left')