📄 nedit.doc
字号:
Buttons Button 1 (left) Cursor position and primary selection Button 2 (middle) Secondary selections, and dragging and copying the primary selection Button 3 (right) Quick-access programmable menu and pan scrolling Modifier keys Shift On primary selections, (left mouse button): Extends selection to the mouse pointer On secondary and copy operations, (middle): Toggles between move and copy Ctrl Makes selection rectangular or insertion columnar Alt* (on release) Exchange primary and secondary selections. LEFT MOUSE BUTTON The left mouse button is used to position the cursor and to make primary selections. Click Moves the cursor Double Click Selects a whole word Triple Click Selects a whole line Quad Click Selects the whole file Shift Click Adjusts (extends or shrinks) the selection, or if there is no existing selection, begins a new selection between the cursor and the mouse. Ctrl+Shift+ Adjusts (extends or shrinks) the Click selection rectangularly. Drag Selects text between where the mouse was pressed and where it was released. Ctrl+Drag Selects rectangle between where the mouse was pressed and where it was released. RIGHT MOUSE BUTTON The right mouse button posts a programmable menu for frequently used commands. Click/Drag Pops up the background menu (programmed from Preferences -> Default Settings -> Customize Menus -> Window Background). Ctrl+Drag Pan scrolling. Scrolls the window both vertically and horizontally, as if you had grabbed it with your mouse. MIDDLE MOUSE BUTTON The middle mouse button is for making secondary selections, and copying and dragging the primary selection. Click Copies the primary selection to the clicked position. Shift+Click Moves the primary selection to the clicked position, deleting it from its original position. Drag 1) Outside of the primary selection: Begins a secondary selection. 2) Inside of the primary selection: Moves the selection by dragging. Ctrl+Drag 1) Outside of the primary selection: Begins a rectangular secondary selection. 2) Inside of the primary selection: Drags the selection in overlay mode (see below). When the mouse button is released after creating a secondary selection: No Modifiers If there is a primary selection, replaces it with the secondary selection. Otherwise, inserts the secondary selection at the cursor position. Shift Move the secondary selection, deleting it from its original position. If there is a primary selection, the move will replace the primary selection with the secondary selection. Otherwise, moves the secondary selection to to the cursor position. Alt* Exchange the primary and secondary selections. While moving the primary selection by dragging with the middle mouse button: Shift Leaves a copy of the original selection in place rather than removing it or blanking the area. Ctrl Changes from insert mode to overlay mode (see below). Escape Cancels drag in progress. Overlay Mode: Normally, dragging moves text by removing it from the selected position at the start of the drag, and inserting it at a new position relative to to the mouse. When you drag a block of text over existing characters, the existing characters are displaced to the end of the selection. In overlay mode, characters which are occluded by blocks of text being dragged are simply removed. When dragging non-rectangular selections, overlay mode also converts the selection to rectangular form, allowing it to be dragged outside of the bounds of the existing text. Mouse buttons 4 and 5 are usually represented by a mouse wheel nowadays. They are used to scroll up or down in the text window. * The Alt key may be labeled Meta or Compose-Character on some keyboards. Some window managers, including default configurations of mwm, bind combinations of the Alt key and mouse buttons to window manager operations. In NEdit, Alt is only used on button release, so regardless of the window manager bindings for Alt-modified mouse buttons, you can still do the corresponding NEdit operation by using the Alt key AFTER the initial mouse press, so that Alt is held while you release the mouse button. If you find this difficult or annoying, you can re-configure most window managers to skip this binding, or you can re-configure NEdit to use a different key combination. ------------------KEYBOARD SHORTCUTS------------------ Most of the keyboard shortcuts in NEdit are shown on the right hand sides of the pull-down menus. However, there are more which are not as obvious. These include; dialog button shortcuts; menu and dialog mnemonics; labeled keyboard keys, such as the arrows, page-up, page-down, and home; and optional Shift modifiers on accelerator keys, like [Shift]Ctrl+F. MENU ACCELERATORS Pressing the key combinations shown on the right of the menu items is a shortcut for selecting the menu item with the mouse. Some items have the shift key enclosed in brackets, such as [Shift]Ctrl+F. This indicates that the shift key is optional. In search commands, including the shift key reverses the direction of the search. In Shift commands, it makes the command shift the selected text by a whole tab stop rather than by single characters. MENU MNEMONICS Pressing the Alt key in combination with one of the underlined characters in the menu bar pulls down that menu. Once the menu is pulled down, typing the underlined characters in a menu item (without the Alt key) activates that item. With a menu pulled down, you can also use the arrow keys to select menu items, and the Space or Enter keys to activate them. KEYBOARD SHORTCUTS WITHIN DIALOGS One button in a dialog is usually marked with a thick indented outline. Pressing the Return or Enter key activates this button. All dialogs have either a Cancel or Dismiss button. This button can be activated by pressing the Escape (or Esc) key. Pressing the tab key moves the keyboard focus to the next item in a dialog. Within an associated group of buttons, the arrow keys move the focus among the buttons. Shift+Tab moves backward through the items. Most items in dialogs have an underline under one character in their name. Pressing the Alt key along with this character, activates a button as if you had pressed it with the mouse, or moves the keyboard focus to the associated text field or list. You can select items from a list by using the arrow keys to move the selection and space to select. In file selection dialogs, you can type the beginning characters of the file name or directory in the list to select files LABELED FUNCTION KEYS The labeled function keys on standard workstation and PC keyboards, like the arrows, and page-up and page-down, are active in NEdit, though not shown in the pull-down menus. Holding down the control key while pressing a named key extends the scope of the action that it performs. For example, Home normally moves the insert cursor the beginning of a line. Ctrl+Home moves it to the beginning of the file. Backspace deletes one character, Ctrl+Backspace deletes one word. Holding down the shift key while pressing a named key begins or extends a selection. Combining the shift and control keys combines their actions. For example, to select a word without using the mouse, position the cursor at the beginning of the word and press Ctrl+Shift+RightArrow. The Alt key modifies selection commands to make the selection rectangular. Under X and Motif, there are several levels of translation between keyboard keys and the actions they perform in a program. The "Customizing NEdit", and "X Resources" sections of the Help menu have more information on this subject. Because of all of this configurability, and since keyboards and standards for the meaning of some keys vary from machine to machine, the mappings may be changed from the defaults listed below. MODIFIER KEYS (IN GENERAL) Ctrl Extends the scope of the action that the key would otherwise perform. For example, Home normally moves the insert cursor to the beginning of a line. Ctrl+Home moves it to the beginning of the file. Backspace deletes one character, Ctrl+ Backspace deletes one word. Shift Extends the selection to the cursor position. If there's no selection, begins one between the old and new cursor positions. Alt When modifying a selection, makes the selection rectangular. (For the effects of modifier keys on mouse button presses, see the section titled "Using the Mouse") ALL KEYBOARDS Escape Cancels operation in progress: menu selection, drag, selection, etc. Also equivalent to cancel button in dialogs. Backspace Delete the character before the cursor Ctrl+BS Delete the word before the cursor Arrows -- Left Move the cursor to the left one character Ctrl+Left Move the cursor backward one word (Word delimiters are settable, see "Customizing NEdit", and "X_Resources_") Right Move the cursor to the right one character Ctrl+Right Move the cursor forward one word Up Move the cursor up one line Ctrl+Up Move the cursor up one paragraph. (Paragraphs are delimited by blank lines) Down Move the cursor down one line. Ctrl+Down Move the cursor down one paragraph. Ctrl+Return Return with automatic indent, regardless of the setting of Auto Indent. Shift+Return Return without automatic indent, regardless of the setting of Auto Indent. Ctrl+Tab Insert an ASCII tab character, without
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -