GNU Readline operation reference (BashEmacs...)

xiaoxiao2021-03-06  93

C-X C-C Exits Emacs! The most important EMACS command: -)

Basic Operation C-B Retreat 1 Character C-F Tending 1 Character DEL / BackSpace Delete Left Character (# 1) C-D Delete Cursor Under The C-U Undo Last Operation

# 1: Based on different configurations, the BackSpace key may be set to delete the characters on the left side of the cursor and the DEL key is the same as C-D, and the characters under the cursor are deleted.

Moving the cursor C-A moves to the head C-E moves to the row M-F forward a word (including numbers and letters) M-B back to back a word C-L empty screen, then re-output the current line at the top

Killing Operations Killing Operation refers to the sequential paste from the current row to start to delete the remaining portion of the remaining part of the remaining portion MD from the current location; if the cursor is between the words; then delete A word M-DEL deletes the part from the cursor position to the word; if the cursor is between words, remove the previous word CW to delete the portion between the current position to the previous blank. Different words with M-DEL

YANKING Operation C-Y Paste the last kill of text to the cursor M-Y rollback paste record, and paste the new top one. The previous instruction must be C-Y or M-Y

The read parameters can pass the digital parameters to the Readline command. Format: M - [-] Digit Command Example: M-1 0 C-D Transfer 10 to C-D, Ten characters M-K pass-1 after deleting cursor, to C-K, delete the part before the cursor in the current row

Find two ways: normal lookup, incremental search increment: Cr in history (reverse) Find CS in history in history (forward) Find repetition CR / CS will continue to look up Next Record the ESC / CJ end lookup, accept the results of the lookup to end the search, accept the result and execute the CG exit look, restore the current line

Explo, translated from "GNU Readline Library Users' Manual" http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html

转载请注明原文地址:https://www.9cbs.com/read-96695.html

New Post(0)