📄 learn.html
字号:
<HTML><HEAD><TITLE> Macro/Shell Extensions </TITLE></HEAD><BODY><A NAME="Learn/Replay"></A><H2> Learn/Replay </H2><P>Selecting Learn Keystrokes from the Macro menu puts NEdit in learn mode. Inlearn mode, keystrokes and menu commands are recorded, to be played backlater, using the Replay Keystrokes command, or pasted into a macro in theMacro Commands dialog of the Default Settings menu in Preferences.</P><P>Note that only keyboard and menu commands are recorded, not mouse clicks ormouse movements since these have no absolute point of reference, such ascursor or selection position. When you do a mouse-based operation in learnmode, NEdit will beep (repeatedly) to remind you that the operation was notrecorded.</P><P>Learn mode is also the quickest and easiest method for writing macros. Thedialog for creating macro commands contains a button labeled "Paste Learn /Replay Macro", which will deposit the last sequence learned into the body ofthe macro.</P><P><H3>Repeating Actions and Learn/Replay Sequences</H3></P><P>You can repeat the last (keyboard-based) command, or learn/replay sequencewith the Repeat... command in the Macro menu. To repeat an action, first dothe action (that is, insert a character, do a search, move the cursor), thenselect Repeat..., decide how or how many times you want it repeated, andclick OK. For example, to move down 30 lines through a file, you could type:<Down Arrow> Ctrl+, 29 <Return>. To repeat a learn/replay sequence, firstlearn it, then select Repeat..., click on Learn/Replay and how you want itrepeated, then click OK.</P><P>If the commands you are repeating advance the cursor through the file, youcan also repeat them within a range of characters, or from the current cursorposition to the end of the file. To iterate over a range of characters, usethe primary selection (drag the left mouse button over the text) to mark therange you want to operate on, and select "In Selection" in the Repeat dialog.</P><P>When using In "Selection" or "To End" with a learned sequence, try to docursor movement as the last step in the sequence, since testing of the cursorposition is only done at the end of the sequence execution. If you do cursormovement first, for example searching for a particular word then doing amodification, the position of the cursor won't be checked until the sequencehas potentially gone far beyond the end of your desired range.</P><P>It's easy for a repeated command to get out of hand, and you can easilygenerate an infinite loop by using range iteration on a command which doesn'tprogress. To cancel a repeating command in progress, type Ctrl+. (period),or select Cancel Macro from the Macro menu.<P><HR></P><P></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -