]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/10_keyboard/10_keyboard.zshrc
10_keyboard: Add C-x,C-p shortcut for "push-line"
[ax-zsh.git] / core / 10_keyboard / 10_keyboard.zshrc
index 92ecf04152009bd9af61e5e528424894de96effc..e301df3558115e9e0cc99a7700a3e4e90ae96bc4 100644 (file)
@@ -3,7 +3,22 @@
 
 bindkey -e
 
+bindkey "^[[3~" delete-char
+bindkey "^[3;5~" delete-char
+bindkey "\e[3~" delete-char
+
 # Allow editing of the current command line in $EDITOR
 autoload -Uz edit-command-line
 zle -N edit-command-line
 bindkey '\C-x\C-e' edit-command-line
+
+# Move to where the arguments belong.
+after-first-word() {
+       zle beginning-of-line
+       zle forward-word
+}
+zle -N after-first-word
+bindkey "\C-x1" after-first-word
+
+# Push back current line.
+bindkey '\C-x\C-p' push-line