📄 shell.html
字号:
<HTML><HEAD><TITLE> Macro/Shell Extensions </TITLE></HEAD><BODY><A NAME="Macro/Shell_Extensions"></A><H1> Macro/Shell Extensions </H1><A NAME="Shell_Commands_and_Filters"></A><H2> Shell Commands and Filters </H2><P>The Shell menu (Unix versions only) allows you to execute Unix shell commandsfrom within NEdit. You can add items to the menu to extend NEdit's commandset or to incorporate custom automatic editing features using shell commandsor editing languages like awk and sed. To add items to the menu, selectPreferences -> Default Settings Customize Menus -> Shell Menu. NEdit comespre-configured with a few useful Unix commands like spell and sort, but weencourage you to add your own custom extensions.</P><P>Filter Selection... prompts you for a Unix command to use to process thecurrently selected text. The output from this command replaces the contentsof the selection.</P><P>Execute Command... prompts you for a Unix command and replaces the currentselection with the output of the command. If there is no selection, itdeposits the output at the current insertion point. In the Shell Commandfield, the % character expands to the name (including directory path), andthe # character expands to the current line number of the file in the window.To include a % or # character in the command, use %% or ##, respectively. </P><P>Execute Command Line uses the position of the cursor in the window toindicate a line to execute as a shell command line. The cursor may bepositioned anywhere on the line. This command allows you to use an NEditwindow as an editable command window for saving output and saving commandsfor re-execution. Note that the same character expansions described abovein Execute Command also occur with this command.</P><P>The X resource called nedit.shell (See "<A HREF="customize.html#Customizing_NEdit">Customizing NEdit</A>") determines whichUnix shell is used to execute commands. The default value for this resourceis /bin/csh.<P><HR></P><P></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -