Folding in S4AHK
Posted: 12 May 2017, 13:42
I'm wondering how to initiate/customize folding for SciTE4AutoHotkey. I have a long script with many hotkeys, and it becomes quite tedious to scroll through all of them looking for the key I want, or the section in which to add another key. For example:
Those are just two of the 25 sections of the script, and some sections have 10‑15 hotkeys. Ideally, I would want to be able to add folding at each section (ex. "; 1. File"), and for each hotkey, so that when the folds are closed, it would look more like:
Any ideas?
Thanks in advance for your help!
Code: Select all
; 1. File
^+s:: ; hotkey for save project as (formerly targeted save all)
Send {F10}fj ; targets the menu item
Return
^!s:: ; reassigned hotkey for save all (formerly ctrl+shift+s)
Send {F10}fv ; targets the menu item
Return
!u:: ; hotkey for used by
Send +{F10}y ; targets the context menu item
Return
^y:: ; reassigned hotkey for repeat (formerly ctrl+r; formerly targeted redo)
MouseGetPos, xpos, ypos ; identifies the mouse starting position
Send {click 562, 50} ; clicks the button
MouseMove, %xpos%, %ypos%, 0 ; returns the mouse immediately to the starting position
Return
; 2. Validate and Export
!p:: ; hotkey for validate font
Send {F10}tv ; targets the menu item
Return
^!i:: ; hotkey for install font
Send {F10}tn ; targets the menu item
Return
^e:: ; hotkey for export settings (formerly targeted paste special)
Send {F10}fe ; targets the menu item
Return
^!e:: ; hotkey for export all
Send {F10}fa ; targets the context menu item
Return
Code: Select all
; 1. File
^+s:: ; hotkey for save project as (formerly targeted save all)
^!s:: ; reassigned hotkey for save all (formerly ctrl+shift+s)
!u:: ; hotkey for used by
^y:: ; reassigned hotkey for repeat (formerly ctrl+r; formerly targeted redo)
; 2. Validate and Export
!p:: ; hotkey for validate font
^!i:: ; hotkey for install font
^e:: ; hotkey for export settings (formerly targeted paste special)
^!e:: ; hotkey for export all
Thanks in advance for your help!