4
4
--[[ -----------------------------------------------------------------------
5
5
List of Own-Hotkey-Functions
6
6
7
- • AddFuncName
7
+ • AddFuncName
8
8
Adds at end of every created function in current au3-script: " ;==> Function_Name"
9
9
10
- • AlignAtEqualSign
10
+ • AlignAtEqualSign
11
11
Aligns all selected rows at the first rightmost equal sign
12
12
13
- • DebugToConsole
13
+ • DebugToConsole
14
14
Debugs variable under cursor with(out) @error, @extended to console output (table style)
15
15
16
- • ExecuteAU3
16
+ • ExecuteAU3
17
17
Runs a given au3-file with(out) parameters
18
18
19
- • FindJumpMarks
20
- Search Jump Marks ( §§ ) and writes to console: "line_number text_from_this_line"
19
+ • FindJumpMarks
20
+ Search Jump Marks ( §§ ) and writes to console: "line_number text_from_this_line"
21
21
22
- • FunctionHeader
22
+ • FunctionHeader
23
23
Inserts a short function header for current script language (*.au3, *.py, *.lua)
24
24
25
- • GetHotkeyList
25
+ • GetHotkeyList
26
26
Writes a list of used Hotkeys to console output
27
27
28
- • GoToLine [hard coded]
28
+ • GoToLine [hard coded]
29
29
Goes to next/previous line, sets caret to end of line
30
30
31
- • JumpToMark
31
+ • JumpToMark
32
32
Jumps to the selected mark (where the cursor is in output line)
33
33
34
- • ReloadStartupLua
34
+ • ReloadStartupLua
35
35
Reloads the Lua Startup script
36
36
37
- • Repeat
37
+ • Repeat
38
38
Repeats the character left from cursor n-times
39
39
Write the character, activate Repeat-Mode, hit numbers for "n", <ENTER> repeats last char n-times (count includes the first char)
40
40
41
- • RunSelectedCode
41
+ • RunSelectedCode
42
42
Runs selected au3-code in an temporary file
43
43
44
- • SelectionMoveH [hard coded]
44
+ • SelectionMoveH [hard coded]
45
45
Moves selected text in line to left or right
46
46
47
- • SelectionMoveV [hard coded]
47
+ • SelectionMoveV [hard coded]
48
48
Moves selected text between lines up or down
49
49
50
- • SelectLine
50
+ • SelectLine
51
51
Selects full line from cursor
52
52
53
- • SelectTextInLine
53
+ • SelectTextInLine
54
54
Selects line from cursor without leading space characters
55
55
56
- • SelectWord
56
+ • SelectWord
57
57
Selects full word with any characters at cursor position. Returns it or copy to clipboard
58
58
59
- • SetSelection
59
+ • SetSelection
60
60
Selects word under cursor with(out) leading "$" / with following square braces
61
61
62
- • ShellExecute
62
+ • ShellExecute
63
63
Runs a given file with(out) parameters
64
64
65
- • SkipToComment
65
+ • SkipToComment
66
66
Sets caret to start of comment in line, if any
67
67
68
- • ToggleAdjacentChars
68
+ • ToggleAdjacentChars
69
69
Toggles adjacent characters
70
70
71
71
---------------------------------------------------------------------------
72
72
73
73
Hard Coded Functions (use properties to de/activate)
74
74
75
- • Move Selected Line(s) up/down (native editor functions)
76
- • Move Selected Text In Line up/down/left/right (SelectionMoveV / SelectionMoveH)
77
- • Skip Cursor To Previous/Next Line at line end position (GoToLine)
75
+ • Move Selected Line(s) up/down (native editor functions)
76
+ • Move Selected Text In Line up/down/left/right (SelectionMoveV / SelectionMoveH)
77
+ • Skip Cursor To Previous/Next Line at line end position (GoToLine)
78
78
79
79
80
80
-------------------------------------------------------------------------]]
@@ -143,11 +143,11 @@ end --> AlignAtEqualSign
143
143
144
144
---- ---------------------------------------------------------------------
145
145
--[[ DebugToConsole() --> also recognizes array variables like: $a[$i][0]
146
- • debugs variable under cursor, no error output
146
+ • debugs variable under cursor, no error output
147
147
DebugToConsole(true)
148
- • debugs variable under cursor, error output
148
+ • debugs variable under cursor, error output
149
149
DebugToConsole(true, true)
150
- • debugs variable under cursor, error & extended output
150
+ • debugs variable under cursor, error & extended output
151
151
]]
152
152
---- ---------------------------------------------------------------------
153
153
OHK .DebugToConsole = function (_fErr , _fExt )
@@ -188,15 +188,15 @@ end --> ExecuteAU3
188
188
---- ---------------------------------------------------------------------
189
189
OHK .FindJumpMarks = function ()
190
190
local sOut = ' '
191
- for pos in editor :GetText ():gmatch (' ()§§' ) do
191
+ for pos in editor :GetText ():gmatch (' ()§§' ) do
192
192
line = editor :LineFromPosition (pos )
193
193
sOut = sOut .. ' +> ' .. tostring (line + 1 ).. (' ' ):rep (8 -# tostring (line )).. editor :GetLine (line )
194
194
end
195
195
output :ClearAll ()
196
196
if sOut ~= ' ' then
197
- output :AppendText (' -> Sprungmarken in Zeilen :\n ' .. sOut )
197
+ output :AppendText (' -> Jump marks in lines :\n ' .. sOut )
198
198
else
199
- output :AppendText (' !> Keine Sprungmarken vorhanden .\n ' )
199
+ output :AppendText (' !> No jump marks found .\n ' )
200
200
end
201
201
end
202
202
---- ---------------------------------------------------------------------
@@ -418,9 +418,9 @@ end --> SelectTextInLine
418
418
419
419
---- ---------------------------------------------------------------------
420
420
--[[ SelectWord()
421
- • selects full word with any characters at cursor position
422
- • returns the string or
423
- • copies the string to clipboard
421
+ • selects full word with any characters at cursor position
422
+ • returns the string or
423
+ • copies the string to clipboard
424
424
]]
425
425
---- ---------------------------------------------------------------------
426
426
OHK .SelectWord = function (_return )
@@ -442,12 +442,12 @@ end --> SelectWord
442
442
443
443
---- ---------------------------------------------------------------------
444
444
--[[ SetSelection()
445
- • selects variable under cursor: $variable
445
+ • selects variable under cursor: $variable
446
446
SetSelection(false, true)
447
- • selects variable under cursor with following square braces: $variable[$i][$j]
448
- • builds an debug string from this variable
447
+ • selects variable under cursor with following square braces: $variable[$i][$j]
448
+ • builds an debug string from this variable
449
449
SetSelection(true)
450
- • selects variable under cursor without leading "$": variable
450
+ • selects variable under cursor without leading "$": variable
451
451
]]
452
452
---- ---------------------------------------------------------------------
453
453
OHK .SetSelection = function (_part , _brace )
0 commit comments