]>
git.rmz.io Git - dotfiles.git/blob - zsh/lib/00-key-bindings.zsh
3 bindkey
'^N' history-search-forward
4 bindkey
'^P' history-search-backward
5 bindkey
' ' magic
-space # also do history expansion on space
7 bindkey
-s '^[l' '^Qls
' # show dir content
8 bindkey
-s '^Z' '^Qfg
' # fg with ^Z
10 bindkey
'^[[Z' reverse
-menu-complete
12 bindkey
-M vicmd
'v' edit
-command-line
14 # delay after ESC (in 0.01s)
18 bindkey
'^[[7~' beginning
-of-line
19 bindkey
'^[[8~' end
-of-line
22 bindkey
'^A' beginning
-of-line
23 bindkey
'^B' backward
-char
24 bindkey
'^E' end
-of-line
25 bindkey
'^F' edit
-command-line
26 bindkey
'^G' list
-expand
27 bindkey
'^O' accept
-line-and-down-history
28 bindkey
'^Q' push
-input
29 bindkey
'^?' backward
-delete-char
30 bindkey
'^H' backward
-delete-char
31 bindkey
'^W' backward
-kill-word
32 bindkey
'^X=' what
-cursor-position
33 bindkey
'^[.' insert
-last-word
34 bindkey
'^[?' which-command
35 bindkey
'^[A' accept
-and-hold
36 bindkey
'^[a' accept
-and-hold
37 bindkey
'^[C' capitalize
-word
38 bindkey
'^[c' capitalize
-word
39 bindkey
'^[H' run
-help
40 bindkey
'^[h' run
-help
41 bindkey
'^[T' transpose
-words
42 bindkey
'^[t' transpose
-words
44 # make search up and down work, so partially type and hit up/down to find relevant stuff
45 bindkey
'^[[A' up
-line-or-search # up arrow
46 bindkey
'^[[B' down
-line-or-search # down arrow
47 bindkey
'^[[5~' up
-line-or-history # PgUp
48 bindkey
'^[[6~' down
-line-or-history # PgDown
50 bindkey
'^[OA' up
-line-or-history
51 bindkey
'^[OB' down
-line-or-history
52 bindkey
'^[OC' forward
-char
53 bindkey
'^[OD' backward
-char
54 bindkey
'^[OF' end
-of-line
55 bindkey
'^[OH' beginning
-of-line
57 bindkey
'\e[c' forward
-word
58 bindkey
'\e[d' backward
-word
60 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
61 bindkey
'^?' backward
-delete-char
62 bindkey
'^[[3~' delete
-char
63 bindkey
'^[3;5~' delete
-char
64 bindkey
'\e[3~' delete
-char