Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!
| author | Michael Prokop <mika@grml.org> |
| Sat Dec 22 19:20:06 2007 +0100 (11 months ago) | |
| changeset 351 | 1e035008cdfe |
| manifest | 1e035008cdfe |
| parent 350 | d8fe16cecb66 |
| child 352 | 10f9529b5d6e |
--- a/debian/changelog Sat Dec 22 00:15:31 2007 +0100+++ b/debian/changelog Sat Dec 22 19:20:06 2007 +0100@@ -1,10 +1,10 @@ grml-etc-core (0.3.45) unstable; urgencygrml-etc-core (0.3.45) unstable; urgency=low[ Alexander Steinböck ]- * /etc/zsh/zshrc: added bindkeys for navigating by vi keys (hjkl)- as well as 'accept-and-infer-next history' (ctrl-o) to complete- within directories and stay in menu completion.- [Closes: issue350]+ * /etc/zsh/zshrc: added bindkeys for navigating by vi keys (hjkl)+ (disable by default though) as well as 'accept-and-infer-next history'+ (ctrl-o) to complete within directories and stay in menu completion.+ [Closes: issue350]-- Michael Prokop <mika@grml.org> Sat, 22 Dec 2007 00:11:31 +0100
--- a/etc/zsh/zshrc Sat Dec 22 00:15:31 2007 +0100+++ b/etc/zsh/zshrc Sat Dec 22 19:20:06 2007 +0100@@ -3,7 +3,7 @@# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org># Bug-Reports: see http://grml.org/bugs/# License: This file is licensed under the GPL v2.-# Latest change: Don Dez 06 23:21:21 CET 2007 [mika]+# Latest change: Sam Dez 22 19:17:27 CET 2007 [mika]################################################################################# This file is sourced only for interactive shells. It# should contain commands to set up aliases, functions,@@ -412,17 +412,6 @@ bindkey '^Xi' insert-unicode-char# bindkey . rationalise-dot# bindkey '\eq' push-line-or-edit--# use the vi navigation keys (hjkl) besides cursor keys in menu completion- bindkey -M menuselect 'h' vi-backward-char # left- bindkey -M menuselect 'k' vi-up-line-or-history # up- bindkey -M menuselect 'l' vi-forward-char # right- bindkey -M menuselect 'j' vi-down-line-or-history # bottom--# accept a completion and try to complete again by using menu-# completion; very useful with completing directories-# by using 'undo' one's got a simple file browser- bindkey -M menuselect '^o' accept-and-infer-next-history# }}}# power completion - abbreviation expansion {{{@@ -581,8 +570,21 @@ if is4 && autoload -U edit-command-linebindkey '\ee' edit-command-linefi-#k# menu selection: pick item but stay in the menu-is4 && bindkey -M menuselect '\e^M' accept-and-menu-complete+if is4 && [[ -n ${(k)modules[zsh/complist]} ]] ; then+ #k# menu selection: pick item but stay in the menu+ bindkey -M menuselect '\e^M' accept-and-menu-complete++ # use the vi navigation keys (hjkl) besides cursor keys in menu completion+ #bindkey -M menuselect 'h' vi-backward-char # left+ #bindkey -M menuselect 'k' vi-up-line-or-history # up+ #bindkey -M menuselect 'l' vi-forward-char # right+ #bindkey -M menuselect 'j' vi-down-line-or-history # bottom++ # accept a completion and try to complete again by using menu+ # completion; very useful with completing directories+ # by using 'undo' one's got a simple file browser+ bindkey -M menuselect '^o' accept-and-infer-next-history+fi# press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd_bkdate() { BUFFER="$BUFFER$(date '+%F')"; CURSOR=$#BUFFER; }