-
Notifications
You must be signed in to change notification settings - Fork 0
GNU Readline
Austin Kong edited this page Jan 3, 2018
·
1 revision
aka nano
and emacs
compatible keys
C-[key]
mean CTRL + [key]
M-[key]
mean ALT + [key]
C-a # beginning-of-line
C-e # end-of-line
C-l # clear-screen
C-f # forward-char
M-f # forward-word
C-b # backward-char
M-b # backward-word
C-u # unix-line-discard Clear line or clear to start of line
C-k # kill-line Clear line from cursor to end of line
C-d # delete-char
C-h # backward-delete-char
M-d # delete to end of words
C-w # unix-word-rubout unix-filename-rubout Deletes to whitespace before cursor
C-y # yank paste prev killed text - paste last deleted
M-y # yank/paste prev prev killed text - cycle through last deleted?
C-t # transpose-chars
M-t # transpose-words
M-/ # complete-filename Auto-complete a name (without smart completion)
M-? # possible-completions List the possible completions of the preceeding text
M-* # insert-completions Insert all possible completions of the preceeding text
C-g # abort
C-bksp # ???
M-bksp # delete to start of word #backward-kill-word http://shallowsky.com/blog/linux/bash-word-erase.html
C-r # reverse-search-history
C-s # forward-search-history
C-g # abort search and restore the original line
C-j # accept-line end search
C-m # accept-line
C-p # previous-history
C-n # next-history
Reload input files
C-x C-r
Edit current line in editor - vim/nano/emacs
C-x C-e
Custom - fwd/bck words
C-arrow
C-S
"freezes" terminal, C-Q
will unfreeze
This is a collection of tips and reminders for me on how to do things. What is documented here is derived from personal experience and from all over the web (some instruction or information has been copied verbatim). Original sources are provided for some of them. I have built these up over time so it has not been documented properly until now.