Skip to content

Commit 4a527a7

Browse files
committed
Functions for OwnHotKeys
1 parent fe68e8b commit 4a527a7

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

OHKfuncs.lua

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,77 +4,77 @@
44
--[[-----------------------------------------------------------------------
55
List of Own-Hotkey-Functions
66
7-
• AddFuncName
7+
• AddFuncName
88
Adds at end of every created function in current au3-script: " ;==> Function_Name"
99
10-
• AlignAtEqualSign
10+
• AlignAtEqualSign
1111
Aligns all selected rows at the first rightmost equal sign
1212
13-
• DebugToConsole
13+
• DebugToConsole
1414
Debugs variable under cursor with(out) @error, @extended to console output (table style)
1515
16-
• ExecuteAU3
16+
• ExecuteAU3
1717
Runs a given au3-file with(out) parameters
1818
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"
2121
22-
• FunctionHeader
22+
• FunctionHeader
2323
Inserts a short function header for current script language (*.au3, *.py, *.lua)
2424
25-
• GetHotkeyList
25+
• GetHotkeyList
2626
Writes a list of used Hotkeys to console output
2727
28-
• GoToLine [hard coded]
28+
• GoToLine [hard coded]
2929
Goes to next/previous line, sets caret to end of line
3030
31-
• JumpToMark
31+
• JumpToMark
3232
Jumps to the selected mark (where the cursor is in output line)
3333
34-
• ReloadStartupLua
34+
• ReloadStartupLua
3535
Reloads the Lua Startup script
3636
37-
• Repeat
37+
• Repeat
3838
Repeats the character left from cursor n-times
3939
Write the character, activate Repeat-Mode, hit numbers for "n", <ENTER> repeats last char n-times (count includes the first char)
4040
41-
• RunSelectedCode
41+
• RunSelectedCode
4242
Runs selected au3-code in an temporary file
4343
44-
• SelectionMoveH [hard coded]
44+
• SelectionMoveH [hard coded]
4545
Moves selected text in line to left or right
4646
47-
• SelectionMoveV [hard coded]
47+
• SelectionMoveV [hard coded]
4848
Moves selected text between lines up or down
4949
50-
• SelectLine
50+
• SelectLine
5151
Selects full line from cursor
5252
53-
• SelectTextInLine
53+
• SelectTextInLine
5454
Selects line from cursor without leading space characters
5555
56-
• SelectWord
56+
• SelectWord
5757
Selects full word with any characters at cursor position. Returns it or copy to clipboard
5858
59-
• SetSelection
59+
• SetSelection
6060
Selects word under cursor with(out) leading "$" / with following square braces
6161
62-
• ShellExecute
62+
• ShellExecute
6363
Runs a given file with(out) parameters
6464
65-
• SkipToComment
65+
• SkipToComment
6666
Sets caret to start of comment in line, if any
6767
68-
• ToggleAdjacentChars
68+
• ToggleAdjacentChars
6969
Toggles adjacent characters
7070
7171
---------------------------------------------------------------------------
7272
7373
Hard Coded Functions (use properties to de/activate)
7474
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)
7878
7979
8080
-------------------------------------------------------------------------]]
@@ -143,11 +143,11 @@ end --> AlignAtEqualSign
143143

144144
-------------------------------------------------------------------------
145145
--[[ 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
147147
DebugToConsole(true)
148-
• debugs variable under cursor, error output
148+
• debugs variable under cursor, error output
149149
DebugToConsole(true, true)
150-
• debugs variable under cursor, error & extended output
150+
• debugs variable under cursor, error & extended output
151151
]]
152152
-------------------------------------------------------------------------
153153
OHK.DebugToConsole = function(_fErr, _fExt)
@@ -188,15 +188,15 @@ end --> ExecuteAU3
188188
-------------------------------------------------------------------------
189189
OHK.FindJumpMarks = function()
190190
local sOut = ''
191-
for pos in editor:GetText():gmatch('()§§') do
191+
for pos in editor:GetText():gmatch('()§§') do
192192
line = editor:LineFromPosition(pos)
193193
sOut = sOut .. '+> '..tostring(line+1)..(' '):rep(8-#tostring(line))..editor:GetLine(line)
194194
end
195195
output:ClearAll()
196196
if sOut ~= '' then
197-
output:AppendText('-> Sprungmarken in Zeilen:\n' .. sOut)
197+
output:AppendText('-> Jump marks in lines:\n' .. sOut)
198198
else
199-
output:AppendText('!> Keine Sprungmarken vorhanden.\n')
199+
output:AppendText('!> No jump marks found.\n')
200200
end
201201
end
202202
-------------------------------------------------------------------------
@@ -418,9 +418,9 @@ end --> SelectTextInLine
418418

419419
-------------------------------------------------------------------------
420420
--[[ 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
424424
]]
425425
-------------------------------------------------------------------------
426426
OHK.SelectWord = function(_return)
@@ -442,12 +442,12 @@ end --> SelectWord
442442

443443
-------------------------------------------------------------------------
444444
--[[ SetSelection()
445-
• selects variable under cursor: $variable
445+
• selects variable under cursor: $variable
446446
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
449449
SetSelection(true)
450-
• selects variable under cursor without leading "$": variable
450+
• selects variable under cursor without leading "$": variable
451451
]]
452452
-------------------------------------------------------------------------
453453
OHK.SetSelection = function(_part, _brace)

0 commit comments

Comments
 (0)