import{_ as o,o as r,c,a as t,b as a,e,d as n,r as i}from"./app.6c27e557.js";const l={},u=t("h1",{id:"keymap",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#keymap","aria-hidden":"true"},"#"),e(" keymap")],-1),s={href:"https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-keymap",target:"_blank",rel:"noopener noreferrer"},h=t("code",null,"keymap",-1),m=e(" online tutorial"),q=n(`

Use keymap command to print the current keymap:

The default keymap is:

ShortcutShortcut DescriptionCommand NameCommand Description
"\\C-a"ctrl + abeginning-of-linego to the beginning of the line
"\\C-e"ctrl + eend-of-linego to the end of the line
"\\C-f"ctrl + fforward-wordforward a word
"\\C-b"ctrl + bbackward-wordbackward a word
"\\e[D"left arrowbackward-charbackward a character
"\\e[C"right arrowforward-charforward a character
"\\e[B"down arrownext-historyshow next history command
"\\e[A"up arrowprevious-historyshow previous history command
"\\C-h"ctrl + hbackward-delete-charbackward delete a character
"\\C-?"ctrl + shift + /backward-delete-charbackward delete a character
"\\C-u"ctrl + uundoclear current line
"\\C-d"ctrl + ddelete-chardelete the character of the current cursor
"\\C-k"ctrl + kkill-linedelete all characters from the current cursor to the end of the line
"\\C-i"ctrl + icompleteAuto completion, equivalent to TAB
"\\C-j"ctrl + jaccept-lineend the current line, equivalent to enter
"\\C-m"ctrl + maccept-lineend the current line, equivalent to enter
"\\C-w"backward-delete-word
"\\C-x\\e[3~"backward-kill-line
"\\e\\C-?"backward-kill-word

Custom shortcuts

Specify customization in $USER_HOME/.arthas/conf/inputrc file in the current user home directory.

Vim user may want to map ctrl+h to moving the cursor forward one character. To achieve this, copy the default configuration first,

"\\C-a": beginning-of-line
"\\C-e": end-of-line
"\\C-f": forward-word
"\\C-b": backward-word
"\\e[D": backward-char
"\\e[C": forward-char
"\\e[B": next-history
"\\e[A": previous-history
"\\C-h": backward-delete-char
"\\C-?": backward-delete-char
"\\C-u": undo
"\\C-d": delete-char
"\\C-k": kill-line
"\\C-i": complete
"\\C-j": accept-line
"\\C-m": accept-line
"\\C-w": backward-delete-word
"\\C-x\\e[3~": backward-kill-line
"\\e\\C-?": backward-kill-word

then replace "\\C-h": backward-delete-char with "\\C-h": backward-char, then reconnect to Arthas console to take effect.

Shortcuts for jobs

`,11);function b(p,v){const d=i("ExternalLinkIcon");return r(),c("div",null,[u,t("p",null,[t("a",s,[h,m,a(d)])]),q])}const f=o(l,[["render",b],["__file","keymap.html.vue"]]);export{f as default};