ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
370 stars 52 forks source link

Alt+[ ] to navigate folding points #441

Closed ProgerXP closed 1 year ago

ProgerXP commented 1 year ago

Related to #432. New hotkeys allow jumping between and selecting to blocks (as defined by current schema). They are variants of the existing Shift/Ctrl+[/] that delimit blocks by blank lines.

https://github.com/ProgerXP/Notepad2e/blob/4cffb6cb16b7ef24855873be912b67bde7bafdbf/src/Edit.c#L607-L621

If caret is at the first line, Alt+] moves to lines 608, 615, 617, 619 (first column). Alt+[ moves in the opposite direction (towards beginning of file). Shift+Alt+[/] extend selection in addition to moving.

ProgerXP commented 1 year ago

Memo: multi-line function calls also create folding points, subject to Alt+[/]:

func(
  1,
  2,
  3
);