1 | /****************************** Module Header *******************************
|
---|
2 | *
|
---|
3 | * Module Name: stdkeys.e
|
---|
4 | *
|
---|
5 | * Copyright (c) Netlabs EPM Distribution Project 2002
|
---|
6 | *
|
---|
7 | * $Id: stdkeys.e 2541 2012-09-11 17:37:14Z aschn $
|
---|
8 | *
|
---|
9 | * ===========================================================================
|
---|
10 | *
|
---|
11 | * This file is part of the Netlabs EPM Distribution package and is free
|
---|
12 | * software. You can redistribute it and/or modify it under the terms of the
|
---|
13 | * GNU General Public License as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * Netlabs EPM Distribution. This library is distributed in the hope that it
|
---|
16 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
---|
17 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
18 | * General Public License for more details.
|
---|
19 | *
|
---|
20 | ****************************************************************************/
|
---|
21 |
|
---|
22 | defc StdKeys
|
---|
23 |
|
---|
24 | ; ---- Cursor ----
|
---|
25 | DefKey( 'c_home' , 'BeginFile' ) -- Go to begin of file
|
---|
26 | DefKey( 'c_end' , 'EndFile' ) -- Go to end of file
|
---|
27 | DefKey( 'c_f5' , 'BeginWord' ) -- Go to first char in current word
|
---|
28 | DefKey( 'c_f6' , 'EndWord' ) -- Go to last char in current word
|
---|
29 | DefKey( 'c_left' , 'PrevWord' ) -- Go to previous word
|
---|
30 | DefKey( 'c_right' , 'NextWord' ) -- Go to next word
|
---|
31 | DefKey( 'left' , 'PrevChar' ) -- Go to previous char
|
---|
32 | DefKey( 'right' , 'NextChar' ) -- Go to next char
|
---|
33 | DefKey( 'up' , 'Up' ) -- Go to previous line
|
---|
34 | DefKey( 'down' , 'Down' ) -- Go to next line
|
---|
35 | ;DefKey( 'home' , 'BeginLine' ) -- Go to begin of line
|
---|
36 | DefKey( 'home' , 'BeginLineOrText' ) -- Go to begin of line or text
|
---|
37 | ;DefKey( 'end' , 'EndLine' ) -- Go to end of line
|
---|
38 | DefKey( 'end' , 'EndLineOrAfter' ) -- Go to end of line or to the starting col after it
|
---|
39 | DefKey( 'pageup' , 'PageUp' ) -- Go to previous page
|
---|
40 | DefKey( 'pagedown' , 'PageDown' ) -- Go to next page
|
---|
41 | DefKey( 'c_pageup' , 'BeginScreen' ) -- Go to first line on screen
|
---|
42 | DefKey( 'c_pagedown' , 'EndScreen' ) -- Go to last line on screen
|
---|
43 | DefKey( 'c_up' , 'PopPos' ) -- Go to last pos. of cursor stack
|
---|
44 | DefKey( 'c_down' , 'PushPos' ) -- Add current cursor pos. to cursor stack
|
---|
45 | DefKey( 'c_=' , 'SwapPos' ) -- Exchange current cursor pos. with last pos. of stack
|
---|
46 | DefKey( 'c_s_=' , 'SwapPos' ) -- Exchange current cursor pos. with last pos. of stack
|
---|
47 | DefKey( 'c_0' , 'SwapPos' ) -- Exchange current cursor pos. with last pos. of stack
|
---|
48 | DefKey( 'a_-' , 'HighlightCursor' ) -- Draw a circle around cursor
|
---|
49 | DefKey( 'a_e' , 'EndMark' ) -- Go to end of mark
|
---|
50 | DefKey( 'a_y' , 'BeginMark' ) -- Go to begin of mark
|
---|
51 |
|
---|
52 | ; ---- Scroll ----
|
---|
53 | DefKey( 's_f1' , 'ScrollLeft' ) -- Scroll text left
|
---|
54 | DefKey( 's_f2' , 'ScrollRight' ) -- Scroll text right
|
---|
55 | DefKey( 's_f3' , 'ScrollUp' ) -- Scroll text up
|
---|
56 | DefKey( 's_f4' , 'ScrollDown' ) -- Scroll text down
|
---|
57 | DefKey( 's_f5' , 'CenterLine' ) -- V-center current line
|
---|
58 | ;DefKey( 'c_a' , 'NewTop' ) -- Make current line topmost
|
---|
59 |
|
---|
60 | ; ---- Mark ----
|
---|
61 | DefKey( 'a_b' , 'MarkBlock' ) -- Start/end block mark
|
---|
62 | DefKey( 'a_l' , 'MarkLine' ) -- Start/end line mark
|
---|
63 | DefKey( 'a_z' , 'MarkChar' ) -- Start/end char mark
|
---|
64 | DefKey( 'a_w' , 'MarkWord' ) -- Mark current word
|
---|
65 | ;DefKey( 'c_w' , 'MarkToken' ) -- Mark current word, separators according to C syntax
|
---|
66 | DefKey( 'a_s_w' , 'MarkToken' ) -- Mark current word, separators according to C syntax
|
---|
67 | DefKey( 'a_u' , 'UnMark' ) -- Unmark all
|
---|
68 | DefKey( 'c_\' , 'UnMark' ) -- Unmark all
|
---|
69 | DefKey( 'c_s_a' , 'UnMark' ) -- Unmark all
|
---|
70 | DefKey( 'c_a' , 'Select_All' ) -- Mark all
|
---|
71 | DefKey( 'c_/' , 'Select_All' ) -- Mark all
|
---|
72 | DefKey( 's_left' , 'MarkPrevChar' ) -- Mark from cursor to previous char
|
---|
73 | DefKey( 's_right' , 'MarkNextChar' ) -- Mark from cursor to next char
|
---|
74 | DefKey( 's_up' , 'MarkUp' ) -- Mark from cursor line up
|
---|
75 | DefKey( 's_down' , 'MarkDown' ) -- Mark from cursor line down
|
---|
76 | DefKey( 's_home' , 'MarkBeginLineOrText') -- Mark from cursor to begin of line or text
|
---|
77 | DefKey( 's_end' , 'MarkEndLineOrAfter' ) -- Mark from cursor to end of line
|
---|
78 | ;DefKey( 's_home' , 'MarkBeginLine' ) -- Mark from cursor to begin of line
|
---|
79 | DefKey( 'c_s_home' , 'MarkBeginFile' ) -- Mark from cursor to begin of file
|
---|
80 | DefKey( 'c_s_end' , 'MarkEndFile' ) -- Mark from cursor to end of file
|
---|
81 | DefKey( 's_pageup' , 'MarkPageUp' ) -- Mark from cursor page up
|
---|
82 | DefKey( 's_pagedown' , 'MarkPageDown' ) -- Mark from cursor page down
|
---|
83 | DefKey( 'c_s_pageup' , 'MarkBeginScreen' ) -- Mark from cursor to first line on screen
|
---|
84 | DefKey( 'c_s_pagedown' , 'MarkEndScreen' ) -- Mark from cursor to last line on screen
|
---|
85 | DefKey( 'c_s_up' , 'PopMark' ) -- Restore last mark from stack (and remove it from stack)
|
---|
86 | DefKey( 'c_s_down' , 'PushMark' ) -- Save current mark to mark stack
|
---|
87 | DefKey( 'c_s_-' , 'SwapMark' ) -- Exchange current mark with last mark from stack
|
---|
88 | DefKey( 'c_s_+' , 'SwapMark' ) -- Exchange current mark with last mark from stack
|
---|
89 |
|
---|
90 | ; ---- Mark operations ----
|
---|
91 | DefKey( 'a_c' , 'CopyMark' ) -- Copy mark
|
---|
92 | DefKey( 'a_d' , 'DeleteMark' ) -- Delete mark
|
---|
93 | DefKey( 'a_m' , 'MoveMark' ) -- Move mark
|
---|
94 | DefKey( 'a_o' , 'OverlayMark' ) -- Copy block
|
---|
95 | DefKey( 'a_a' , 'AdjustMark' ) -- Move block
|
---|
96 | DefKey( 'a_t' , 'CenterMark' ) -- Center text in mark
|
---|
97 | DefKey( 'a_f' , 'FillMark' ) -- Open dialog to specify a char as fill char
|
---|
98 | DefKey( 'c_f7' , 'ShiftLeft' ) -- Move text in mark 1 col left
|
---|
99 | DefKey( 'c_f8' , 'ShiftRight' ) -- Move text in mark 1 col right
|
---|
100 | DefKey( 'c_y' , 'FontList' ) -- Open style dialog to add font attributes to mark
|
---|
101 | DefKey( 'c_s_y' , 'linkexec stylebut apply_style S') -- Open list box for selecting a style
|
---|
102 |
|
---|
103 | ; ---- Delete ----
|
---|
104 | DefKey( 'delete' , 'DeleteChar' ) -- Delete current char
|
---|
105 | DefKey( 'backspace' , 'BackSpace' ) -- Delete previous char (Shift marks)
|
---|
106 | DefKey( 's_backspace' , 'BackSpace' ) -- Delete previous char (Shift marks)
|
---|
107 | DefKey( 'c_backspace' , 'DeleteLine' ) -- Delete current line
|
---|
108 | DefKey( 'c_delete' , 'DeleteUntilNextWord') -- Delete from cursor until beginning of next word
|
---|
109 | DefKey( 'c_d' , 'DeleteUntilNextWord') -- Delete from cursor until beginning of next word
|
---|
110 | DefKey( 'c_s_delete' , 'DeleteUntilEndLine') -- Delete from cursor until end of line
|
---|
111 | DefKey( 'c_e' , 'DeleteUntilEndLine') -- Delete from cursor until end of line
|
---|
112 |
|
---|
113 | ; ---- Search ----
|
---|
114 | DefKey( 'c_s' , 'SearchDlg' ) -- Open search dialog
|
---|
115 | DefKey( 'c_f' , 'RepeatFind' ) -- Repeat find
|
---|
116 | DefKey( 'c_c' , 'RepeatChange' ) -- Repeat change
|
---|
117 | DefKey( 'c_v' , 'RepeatFindAllFiles' ) -- Repeat find in all files of the ring
|
---|
118 | DefKey( 'c_-' , 'ToggleSearchDirection') -- Toggle search direction
|
---|
119 | DefKey( 'c_w' , 'FindWord' ) -- Find current word, separators according to C syntax
|
---|
120 | DefKey( 'c_s_d' , 'FindDef' ) -- Find definition for current word
|
---|
121 |
|
---|
122 | ; ---- Clipboard ----
|
---|
123 | DefKey( 's_delete' , 'Cut' ) -- Copy mark to clipboard and delete
|
---|
124 | DefKey( 's_insert' , 'DefaultPaste' ) -- Default paste (paste as chars, selectable)
|
---|
125 | DefKey( 'c_insert' , 'Copy2Clip' ) -- Copy mark to clipboard
|
---|
126 | DefKey( 'c_s_insert' , 'AlternatePaste' ) -- Alternate paste (paste as lines, depends on default paste)
|
---|
127 |
|
---|
128 | ; ---- Execute ----
|
---|
129 | DefKey( 'c_i' , 'CommandLine' ) -- Open Command dialog
|
---|
130 | DefKey( 'esc' , 'ProcessEscape' ) -- Open Command dialog or stop block reflow
|
---|
131 | DefKey( 'a_0' , 'dolines' ) -- Execute line under cursor
|
---|
132 | DefKey( 'a_=' , 'dolines' ) -- Execute line under cursor
|
---|
133 | DefKey( 'a_s_=' , 'dolines' ) -- Execute line under cursor
|
---|
134 | DefKey( 'c_l' , 'CommandDlgLine' ) -- Open current line in Command dialog
|
---|
135 |
|
---|
136 | ; ---- File operations ----
|
---|
137 | DefKey( 'a_f2' , 'SaveAs_Dlg' ) -- Open the Save-as dialog
|
---|
138 | DefKey( 'f2' , 'SmartSave' ) -- Save; if unchanged: give message
|
---|
139 | DefKey( 'f3' , 'Quit' ) -- Quit file
|
---|
140 | DefKey( 'f4' , 'FileOrQuit' ) -- Save and quit file; if unchanged: just quit
|
---|
141 | DefKey( 'f5' , 'OpenDlg' ) -- Open File-open dialog (will open file in a new window)
|
---|
142 | DefKey( 'c_o' , 'EditFileDlg' ) -- Open File-edit dialog (will open file in the same window)
|
---|
143 | DefKey( 'f7' , 'Rename' ) -- Open Rename entrybox
|
---|
144 | DefKey( 'f8' , 'EditFileDlg' ) -- Open File-edit dialog (will open file in the same window)
|
---|
145 | DefKey( 'c_s_f9' , 'History edit' ) -- Open Edit history listbox
|
---|
146 | DefKey( 'c_s_f10' , 'History load' ) -- Open Load history listbox
|
---|
147 | DefKey( 'c_s_f11' , 'History save' ) -- Open Save history listbox
|
---|
148 |
|
---|
149 | ; ---- Special chars ----
|
---|
150 | DefKey( 'a_f1' , 'TypeFrameChars' ) -- Type a list of IBM frame chars (help for the draw and box commands)
|
---|
151 | ;DefKey( 'a_n' , 'TypeFileName' ) -- Type the full filename
|
---|
152 | DefKey( 'c_2' , 'TypeAscChars \0' ) -- Type a null char (\0)
|
---|
153 | DefKey( 'c_6' , 'TypeAscChars \170') -- Type a not char ª (\170)
|
---|
154 | DefKey( 'c_9' , 'TypeChars {' ) -- Type a {
|
---|
155 | ;DefKey( 'c_0' , 'TypeChars }' ) -- Type a }
|
---|
156 | DefKey( 'c_4' , 'TypeAscChars \155') -- Type a cent char (\155)
|
---|
157 | DefKey( 'c_tab' , 'TypeAscChars \9' ) -- Type a tab char (\9)
|
---|
158 |
|
---|
159 | ; ---- Window and File switching ----
|
---|
160 | DefKey( 'f11' , 'PrevFile' ) -- Switch to previous file
|
---|
161 | ;DefKey( 'c_p' , 'PrevFile' ) -- Switch to previous file
|
---|
162 | DefKey( 'f12' , 'NextFile' ) -- Switch to next file
|
---|
163 | ;DefKey( 'c_n' , 'NextFile' ) -- Switch to next file
|
---|
164 | DefKey( 'a_f12' , 'NextView' ) -- Switch to next view of current file
|
---|
165 | DefKey( 'c_n' , 'Open' ) -- Open new EPM window
|
---|
166 | DefKey( 'c_s_f12' , 'Next_Win' ) -- Switch to next EPM window
|
---|
167 | DefKey( 'c_g' , 'Ring_More' ) -- Open a dialog to select a file of the ring
|
---|
168 | ; Sh+Esc is usually defined by PM (open system menu, like Alt+Spc).
|
---|
169 | DefKey( 's_esc' , 'Ring_More' ) -- Open a dialog to select a file of the ring
|
---|
170 |
|
---|
171 | ; ---- Reflow ----
|
---|
172 | DefKey( 'a_j' , 'JoinLines' ) -- Join current with next line
|
---|
173 | DefKey( 'a_s' , 'SplitLines' ) -- Split line at cursor pos., keeping the indent
|
---|
174 | DefKey( 'a_p' , 'ReflowPar2ReflowMargins') -- Reflow current paragraph, starting at cursor, using reflowmargins
|
---|
175 | DefKey( 'a_s_p' , 'ReflowMark2ReflowMargins') -- Reflow current mark, using reflowmargins
|
---|
176 | DefKey( 'c_p' , 'ReflowAll2ReflowMargins') -- Reflow all, starting at cursor, using reflowmargins
|
---|
177 | DefKey( 'a_r' , 'ReflowBlock' ) -- Reflow marked block to a new block size
|
---|
178 |
|
---|
179 | ; ---- Case ----
|
---|
180 | ;DefKey( 'c_f1' , 'UppercaseWord' -- Change word to uppercase
|
---|
181 | DefKey( 'c_s_f2' , 'UppercaseWord' ) -- Change word to uppercase
|
---|
182 | DefKey( 'c_f1' , 'CaseWord' ) -- Toggle word through mixed, upper and lower cases
|
---|
183 | DefKey( 'c_f2' , 'LowercaseWord' ) -- Change word to lowercase
|
---|
184 | DefKey( 'c_f3' , 'UppercaseMark' ) -- Change mark to uppercase
|
---|
185 | DefKey( 'c_f4' , 'LowercaseMark' ) -- Change mark to lowercase
|
---|
186 |
|
---|
187 | ; ---- Key recording ----
|
---|
188 | DefKey( 'c_r' , 'RecordKeys' ) -- Start/stop recording keys
|
---|
189 | DefKey( 'c_t' , 'PlaybackKeys' ) -- Stop recording and execute recorded keys
|
---|
190 |
|
---|
191 | ; ---- Bookmarks ----
|
---|
192 | DefKey( 'c_b' , 'ListMark' ) -- Open a dialog to select a bookmark
|
---|
193 | DefKey( 'c_m' , 'SetMark' ) -- Open a dialog to save position as bookmark
|
---|
194 | DefKey( 'a_/' , 'NextBookmark' ) -- Go to next bookmark (German keyboard: Alt+Sh+7)
|
---|
195 | DefKey( 'a_7' , 'NextBookmark' ) -- Go to next bookmark
|
---|
196 | DefKey( 'a_\' , 'NextBookmark P' ) -- Go to previous bookmark (German keyboard: Alt+AltGr+Beta)
|
---|
197 | DefKey( 'a_á' , 'NextBookmark P' ) -- Go to previous bookmark
|
---|
198 | DefKey( 'a_s_/' , 'NextBookmark P' ) -- Go to previous bookmark
|
---|
199 |
|
---|
200 | ; ---- Help ----
|
---|
201 | DefKey( 'c_h' , 'kwhelp' ) -- Lookup current word in a help file
|
---|
202 |
|
---|
203 | ; ---- Syntax Assistant ----
|
---|
204 | DefKey( 'a_h' , 'MyAssist' ) -- ASSIST.E: insert code for abbreviations left from cursor
|
---|
205 |
|
---|
206 | ; ---- Bracket matching or expansion ----
|
---|
207 | DefKey( 'c_[' , 'Assist' ) -- Move cursor on matching bracket or statement
|
---|
208 | DefKey( 'c_]' , 'Assist' ) -- Move cursor on matching bracket or statement
|
---|
209 | DefKey( 'c_8' , 'Assist' ) -- Move cursor on matching bracket or statement
|
---|
210 | ; Opening brackets (note that the shifted variant applies, depending on your keyboard):
|
---|
211 | DefKey( '(' , 'OpeningParen' ) -- Add ) while typing ( if defined as match_chars
|
---|
212 | DefKey( 's_(' , 'OpeningParen' ) -- Add ) while typing ( if defined as match_chars
|
---|
213 | DefKey( '[' , 'OpeningBracket' ) -- Add ] while typing [ if defined as match_chars
|
---|
214 | DefKey( '{' , 'OpeningBrace' ) -- Add } while typing { if defined as match_chars
|
---|
215 | DefKey( '<' , 'OpeningAngle' ) -- Add > while typing < if defined as match_chars
|
---|
216 | ; Closing brackets with balance enabled (note that the shifted variant applies, depending on your keyboard):
|
---|
217 | DefKey( ')' , 'Balance )' ) -- Mark matching ( while typing )
|
---|
218 | DefKey( 's_)' , 'Balance )' ) -- Mark matching ( while typing )
|
---|
219 | DefKey( ']' , 'Balance ]' ) -- Mark matching [ while typing ]
|
---|
220 | DefKey( '}' , 'ClosingBrace' ) -- Auto-indent } to indent of { if activated. Mark matching { while typing }
|
---|
221 |
|
---|
222 | ; ---- Draw ----
|
---|
223 | DefKey( 'f6' , 'Draw' ) -- Message about available draw chars and Commandline to typein a char, then use cursor chars
|
---|
224 |
|
---|
225 | ; ---- Tags ----
|
---|
226 | DefKey( 's_f6' , 'FindTag' ) -- Find procedure under cursor via tags file
|
---|
227 | DefKey( 'c_s_f6' , 'mc ;MakeTags =;FindTag') -- Refresh current tags file, then find procedure under cursor via tags file
|
---|
228 | DefKey( 's_f7' , 'FindTag *' ) -- Open entrybox to enter a procedure to find via tags file
|
---|
229 | DefKey( 's_f8' , 'TagsFile' ) -- Open entrybox to select a tags file
|
---|
230 | DefKey( 's_f9' , 'MakeTags *' ) -- Open entrybox to enter list of files to scan for to create a tags file
|
---|
231 | DefKey( 'c_s_t' , 'TagScan' ) -- Open a list box with tags of the current file
|
---|
232 |
|
---|
233 | ; ---- Undo ----
|
---|
234 | DefKey( 'c_u' , 'UndoDlg' ) -- Open Undo dialog
|
---|
235 | DefKey( 'f9' , 'UndoLine' ) -- Undo current line
|
---|
236 | DefKey( 'a_backspace' , 'UndoLine' ) -- Undo current line
|
---|
237 | ; Sync with the Cursor section:
|
---|
238 | ;DefKey( 'c_pgup' , 'Undo1' ) -- Scroll through previous undo states (keep Ctrl pressed to scroll)
|
---|
239 | ;DefKey( 'c_pgdn' , 'Redo1' ) -- Scroll through next undo states (keep Ctrl pressed to scroll)
|
---|
240 | DefKey( 's_f11' , 'Undo1' ) -- Scroll through previous undo states (keep Ctrl pressed to scroll)
|
---|
241 | DefKey( 's_f12' , 'Redo1' ) -- Scroll through next undo states (keep Ctrl pressed to scroll)
|
---|
242 |
|
---|
243 | ; ---- Syntax expansion ----
|
---|
244 | DefKey( 'c_x' , 'ForceExpansion' ) -- Force expansion if defined for a mode
|
---|
245 |
|
---|
246 | ; ---- Space ----
|
---|
247 | ; ExpandFirst <alternate_cmd>
|
---|
248 | ; This command tries to execute the 1st syntax expansion first. If the
|
---|
249 | ; command was not successful, then the <alternate_cmd> is executed.
|
---|
250 |
|
---|
251 | ; 1) Expansion with Space, no expansion with Ctrl+Space:
|
---|
252 | DefKey( 'space' , 'ExpandFirst Space') -- Try 1st syntax expansion if activated. If not successful execute Space
|
---|
253 | DefKey( 'c_space' , 'Space' )
|
---|
254 |
|
---|
255 | ; 2) Expansion with Ctrl+Space, no expansion with Space:
|
---|
256 | ;DefKey( 'space' , 'Space' )
|
---|
257 | ;DefKey( 'c_space' , 'ExpandFirst Space') -- Try 1st syntax expansion if activated. If not successful execute Space
|
---|
258 |
|
---|
259 | DefKey( 's_space' , 'Space' )
|
---|
260 |
|
---|
261 | ; ---- Newline and Enter ----
|
---|
262 | ; ExpandSecond <alternate_cmd>
|
---|
263 | ; This command tries to execute the 2nd syntax expansion first. If the
|
---|
264 | ; command was not successful, then the <alternate_cmd> is executed.
|
---|
265 | ;
|
---|
266 | ; StreamLine <stream_mode_cmd>|<line_mode_cmd>
|
---|
267 | ; This command allows for definitions to behave different in stream mode
|
---|
268 | ; (CUA, default) and line mode. In stream mode <stream_mode_cmd> is
|
---|
269 | ; executed, and in line mode <line_mode_cmd>. Both commands are separated
|
---|
270 | ; with a bar char.
|
---|
271 | ;
|
---|
272 | ; Newline [<num>]
|
---|
273 | ; This command executes an Enter action. For stream mode, no <num> options
|
---|
274 | ; exist. For line mode, following options are available:
|
---|
275 | ; 1 (ADDLINE) Add a new line after cursor, preserving indentation (default)
|
---|
276 | ; 2 (NEXTLINE) Move to beginning of next line (standard for c_enter and c_padenter)
|
---|
277 | ; 3 (ADDATEND) Like (2), but add a line if at end of file
|
---|
278 | ; 4 (DEPENDS) Add a line if in insert mode, else move to next
|
---|
279 | ; 5 (DEPENDS+) Like (4), but always add a line if on last line
|
---|
280 | ; 6 (STREAM) Split line at cursor
|
---|
281 | ; 7 Add a new line, move to left or paragraph margin
|
---|
282 | ; 8 Add a new line, move to paragraph margin
|
---|
283 | ; 9 Add a new line, move to column 1
|
---|
284 |
|
---|
285 | ; Use a command here to make the standard def available for other keysets
|
---|
286 | DefKey( 'newline' , 'StdNewline' )
|
---|
287 |
|
---|
288 | ; 1) Expansion with Enter, no expansion with Ctrl+Enter:
|
---|
289 | ; Try 2nd syntax expansion if activated. If not successful execute Enter
|
---|
290 | ;defc StdNewline 'ExpandSecond StreamLine Enter|Enter 1' -- def moved below, outside of StdKeys
|
---|
291 | DefKey( 'c_newline' , 'StreamLine Enter|Enter 2')
|
---|
292 |
|
---|
293 | ; 2) Expansion with Ctrl+Enter, no expansion with Enter:
|
---|
294 | ; Try 2nd syntax expansion if activated. If not successful execute Enter
|
---|
295 | ;defc StdNewline 'StreamLine Enter|Enter 1' -- def moved below, outside of StdKeys
|
---|
296 | ;DefKey( 'c_newline , 'ExpandSecond StreamLine Enter|Enter 2')
|
---|
297 |
|
---|
298 | ; More newline and enter keys
|
---|
299 | DefKey( 'a_newline' , 'StreamLine SoftWrapAtCursor|Enter 1')
|
---|
300 | DefKey( 's_newline' , 'StreamLine Enter|Enter 1')
|
---|
301 |
|
---|
302 | ; Use a command here to make the standard def available for other keysets
|
---|
303 | DefKey( 'enter' , 'StdPadEnter' )
|
---|
304 | ;defc StdPadEnter 'StreamLine Enter|Enter 1' -- def moved below, outside of StdKeys
|
---|
305 | DefKey( 'c_enter' , 'StreamLine Enter|Enter 2')
|
---|
306 | DefKey( 'a_enter' , 'StreamLine Enter|Enter 1')
|
---|
307 | DefKey( 's_enter' , 'StreamLine Enter|Enter 1')
|
---|
308 |
|
---|
309 | DefKey( 'a_n' , 'NewLineAfter' ) -- Add a new line after the current, move to it, keep col
|
---|
310 | DefKey( 'a_s_n' , 'NewLineBefore' ) -- Add a new line before the current, move to it, keep col
|
---|
311 | ;DefKey( 'c_a_enter' , 'NewLineAfter' ) -- Add a new line after the current, move to it, keep col
|
---|
312 | ;DefKey( 'c_a_s_enter' , 'NewLineBefore' ) -- Add a new line before the current, move to it, keep col
|
---|
313 |
|
---|
314 | ; ---- Duplicate ----
|
---|
315 | DefKey( 'c_k' , 'DuplicateLine' ) -- Duplicate a line
|
---|
316 | DefKey( 'a_g' , 'InsertCharAbove' ) -- Insert char from line above at cursor
|
---|
317 | DefKey( 'a_s_g' , 'InsertCharBelow' ) -- Insert char from line below at cursor
|
---|
318 |
|
---|
319 | ; ---- Insert ----
|
---|
320 | DefKey( 'ins' , 'InsertToggle' ) -- Toggle between insert and overwrite mode
|
---|
321 |
|
---|
322 | ; ---- Tab ----
|
---|
323 | DefKey( 'tab' , 'Tab' ) -- Insert tab char or spaces
|
---|
324 | DefKey( 's_backtab' , 'BackTab' ) -- Go back one tabstop
|
---|
325 |
|
---|
326 | ; ---- Load file ----
|
---|
327 | DefKey( 'a_1' , 'alt_1' ) -- Load file under cursor
|
---|
328 |
|
---|
329 | ; ---- Indent ----
|
---|
330 | DefKey( 'a_i' , 'IndentBlock' ) -- Indent current mark or block 1 indent level
|
---|
331 | DefKey( 'a_s_i' , 'IndentBlock U' ) -- Unindent current mark or block 1 indent level
|
---|
332 |
|
---|
333 | ; ---- Comment ----
|
---|
334 | DefKey( 'a_k' , 'comment' ) -- Comment marked lines
|
---|
335 | DefKey( 'a_s_k' , 'uncomment' ) -- Uncomment marked lines
|
---|
336 |
|
---|
337 | ; ---- Move chars and lines ----
|
---|
338 | DefKey( 'a_s_left' , 'MoveCharLeft' ) -- Move char left
|
---|
339 | DefKey( 'a_s_right' , 'MoveCharRight' ) -- Move char right
|
---|
340 | DefKey( 'a_s_up' , 'MoveLineUp' ) -- Exchange previous and current line
|
---|
341 | DefKey( 'a_s_down' , 'MoveLineDown' ) -- Exchange next and previous line
|
---|
342 |
|
---|
343 | ; ---- Popup menu (redefinition of PM key not required) ----
|
---|
344 | ;DefKey( 's_f10 , 'MH_popup' ) -- Show the popup menu
|
---|
345 |
|
---|
346 | ; ---- end of defc StdKeys ----
|
---|
347 |
|
---|
348 |
|
---|
349 | ; ---------------------------------------------------------------------------
|
---|
350 | ; 1) Expansion with Newline, no expansion with Ctrl+Newline:
|
---|
351 | defc StdNewline
|
---|
352 | -- Try 2nd syntax expansion if activated.
|
---|
353 | -- If not successful, execute Newline
|
---|
354 | 'ExpandSecond StreamLine Enter|Enter 1'
|
---|
355 | ; 2) Expansion with Ctrl+Newline, no expansion with Newline:
|
---|
356 | ;defc StdNewline
|
---|
357 | ; 'StreamLine Enter|Enter 1'
|
---|
358 |
|
---|
359 | ; ---------------------------------------------------------------------------
|
---|
360 | defc StdPadEnter, StdEnter
|
---|
361 | 'StreamLine Enter|Enter 1'
|
---|
362 |
|
---|
363 | ; ---------------------------------------------------------------------------
|
---|
364 | ; ---- Auto-spellcheck (dynaspell) ----
|
---|
365 | defc SpellKeys
|
---|
366 | DefKey( 'c_a' , 'SpellProofCurWord')
|
---|
367 | DefKey( 'space' , 'SpellProofNext' )
|
---|
368 | DefKey( 'newline' , 'SpellProofNext' )
|
---|
369 | DefKey( 'enter' , 'SpellProofNext' )
|
---|
370 |
|
---|
371 | ; ---------------------------------------------------------------------------
|
---|
372 | ; ---- All command: key for all/source file switching ----
|
---|
373 | defc AllKeys
|
---|
374 | DefKey( 'c_q' , 'AllSwitchFiles' )
|
---|
375 | DefKey( 'c_s_q' , 'AllEndSwitchFiles')
|
---|
376 |
|
---|