switch shortcuts for bifold text
I've been running out of ctrl+ shortcuts, and I just remembered my original idea to keep ctrl+ for drawings/mouse operations and alt+ for everything else.
This commit is contained in:
parent
73fefa7d09
commit
c112b8fadf
|
@ -24,11 +24,11 @@ function source.draw_menu_bar()
|
|||
add_hotkey_to_menu('ctrl+l: show log browser')
|
||||
end
|
||||
if Editor_state.expanded then
|
||||
add_hotkey_to_menu('ctrl+b: collapse debug prints')
|
||||
add_hotkey_to_menu('alt+b: collapse debug prints')
|
||||
else
|
||||
add_hotkey_to_menu('ctrl+b: expand debug prints')
|
||||
add_hotkey_to_menu('alt+b: expand debug prints')
|
||||
end
|
||||
add_hotkey_to_menu('ctrl+i: create/edit debug print')
|
||||
add_hotkey_to_menu('alt+d: create/edit debug print')
|
||||
add_hotkey_to_menu('ctrl+f: find in file')
|
||||
add_hotkey_to_menu('alt+left alt+right: prev/next word')
|
||||
elseif Focus == 'log_browser' then
|
||||
|
|
|
@ -347,7 +347,7 @@ function edit.keychord_pressed(State, chord, key)
|
|||
}
|
||||
assert(State.search_text == nil)
|
||||
-- bifold text
|
||||
elseif chord == 'C-b' then
|
||||
elseif chord == 'M-b' then
|
||||
State.expanded = not State.expanded
|
||||
Text.redraw_all(State)
|
||||
if not State.expanded then
|
||||
|
@ -356,7 +356,7 @@ function edit.keychord_pressed(State, chord, key)
|
|||
end
|
||||
edit.eradicate_locations_after_the_fold(State)
|
||||
end
|
||||
elseif chord == 'C-i' then
|
||||
elseif chord == 'M-d' then
|
||||
if State.cursor1.posB == nil then
|
||||
local before = snapshot(State, State.cursor1.line)
|
||||
if State.lines[State.cursor1.line].dataB == nil then
|
||||
|
|
Loading…
Reference in New Issue