package keymapimportvar unescape = inputrc.Unescape// emacsKeys are the default keymaps in Emacs mode.var emacsKeys = map[string]inputrc.Bind{unescape(`\C-D`): {Action: "end-of-file"},// NOTE: \C-h is deliberately NOT overridden here. Many terminals send ^H // for Backspace, and the GNU default (inputrc DefaultBinds) binds \C-h to // backward-delete-char. Binding it to backward-kill-word made Backspace // delete a whole word on those terminals; leaving it unset restores the // standard char-delete behaviour.unescape(`\C-N`): {Action: "down-line-or-history"},unescape(`\C-P`): {Action: "up-line-or-history"},unescape(`\C-x\C-b`): {Action: "vi-match"},unescape(`\C-x\C-e`): {Action: "edit-command-line"},unescape(`\C-x\C-n`): {Action: "infer-next-history"},unescape(`\C-x\C-o`): {Action: "overwrite-mode"},unescape(`\C-Xr`): {Action: "reverse-search-history"},unescape(`\C-Xs`): {Action: "forward-search-history"},unescape(`\C-Xu`): {Action: "undo"},unescape(`\M-\C-^`): {Action: "copy-prev-word"},unescape(`\M-'`): {Action: "quote-line"},unescape(`\M-<`): {Action: "beginning-of-buffer-or-history"},unescape(`\M->`): {Action: "end-of-buffer-or-history"},unescape(`\M-c`): {Action: "capitalize-word"},unescape(`\M-d`): {Action: "kill-word"},unescape(`\M-m`): {Action: "copy-prev-shell-word"},unescape(`\M-n`): {Action: "history-search-forward"},unescape(`\M-p`): {Action: "history-search-backward"},unescape(`\M-u`): {Action: "up-case-word"},unescape(`\M-w`): {Action: "kill-region"},unescape(`\M-|`): {Action: "vi-goto-column"},}
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.