ctrl+a: select entire buffer

[?]
Nov 19, 2022, 8:11 AM
BH7BT36LM3D7HF3GOHXUPVNKLJ5LFJHOHRLD3KTC5HA627M3II4AC

Dependencies

  • [2] KMSL74GA support selections in the source editor
  • [3] S2MISTTM add state arg to a few functions
  • [4] LF7BWEG4 group all editor globals
  • [5] UHB4GARJ left/right margin -> left/right coordinates
  • [6] LNUHQOGH start passing in Editor_state explicitly
  • [7] KKMFQDR4 editing source code from within the app
  • [8] 2L5MEZV3 experiment: new edit namespace
  • [*] FS2ITYYH record a known issue
  • [*] UEE5W7WJ document one more shortcut

Change contents

  • replacement in source_edit.lua at line 314
    [2.32463][2.32463:32597]()
    chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) then
    [2.32463]
    [2.32597]
    chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) then
  • edit in source_edit.lua at line 420
    [3.161829]
    [3.161829]
    elseif chord == 'C-a' then
    State.selection1 = {line=1, pos=1}
    State.cursor1 = {line=#State.lines, pos=utf8.len(State.lines[#State.lines].data)+1, posB=nil}
  • replacement in edit.lua at line 304
    [3.10752][3.10752:10886]()
    chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) then
    [3.10752]
    [3.22916]
    chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) then
  • edit in edit.lua at line 381
    [3.13212]
    [3.13212]
    elseif chord == 'C-a' then
    State.selection1 = {line=1, pos=1}
    State.cursor1 = {line=#State.lines, pos=utf8.len(State.lines[#State.lines].data)+1}
  • edit in README.md at line 32
    [11.91]
    [3.210405]
    * mouse drag or `shift` + movement to select text, `ctrl+a` to select all