68cec79d32baeb96efc357ba94c0bfe5b4059c90

Author
Kyle West <kswest@gmail.com>
Committer
Felix Dreissig <f30@f30.me>
Date

Message

Added documentation to key bindings.

Conflicts:
	lib/key-bindings.zsh

Diff

 1diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
 2index 5f499f3e8a56fcfcf24df504994dc3859670f53a..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
 3--- a/lib/key-bindings.zsh
 4+++ b/lib/key-bindings.zsh
 5@@ -1,50 +0,0 @@
 6-# TODO: Explain what some of this does..
 7-
 8-bindkey -e
 9-bindkey '\ew' kill-region
10-bindkey -s '\el' "ls\n"
11-bindkey '^r' history-incremental-search-backward
12-bindkey "^[[5~" up-line-or-history
13-bindkey "^[[6~" down-line-or-history
14-
15-# make search up and down work, so partially type and hit up/down to find relevant stuff
16-bindkey '^[[A' up-line-or-search
17-bindkey '^[[B' down-line-or-search
18-
19-bindkey "^[[H" beginning-of-line
20-bindkey "^[[1~" beginning-of-line
21-bindkey "^[OH" beginning-of-line
22-bindkey "^[[F"  end-of-line
23-bindkey "^[[4~" end-of-line
24-bindkey "^[OF" end-of-line
25-bindkey ' ' magic-space    # also do history expansion on space
26-
27-bindkey "^[[1;5C" forward-word
28-bindkey "^[[1;5D" backward-word
29-
30-bindkey '^[[Z' reverse-menu-complete
31-
32-# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
33-bindkey '^?' backward-delete-char
34-bindkey "^[[3~" delete-char
35-bindkey "^[3;5~" delete-char
36-bindkey "\e[3~" delete-char
37-
38-# consider emacs keybindings:
39-
40-#bindkey -e  ## emacs key bindings
41-#
42-#bindkey '^[[A' up-line-or-search
43-#bindkey '^[[B' down-line-or-search
44-#bindkey '^[^[[C' emacs-forward-word
45-#bindkey '^[^[[D' emacs-backward-word
46-#
47-#bindkey -s '^X^Z' '%-^M'
48-#bindkey '^[e' expand-cmd-path
49-#bindkey '^[^I' reverse-menu-complete
50-#bindkey '^X^N' accept-and-infer-next-history
51-#bindkey '^W' kill-region
52-#bindkey '^I' complete-word
53-## Fix weird sequence that rxvt produces
54-#bindkey -s '^[[Z' '\t'
55-#