From 7fc9f757507ed26cbf09e8e168e266bdf7106f9b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 2 Sep 2013 20:06:29 +0200 Subject: [PATCH] zshrc: use "ctrl-x ." instead ",." to enable power completion / abbreviation expansion The use of ",." for enabling the power completion / abbreviation expansion / buffer expansion was a bad idea because you'll get either a delay or even missing characters, e.g. when ",." is part of a copy/paste action. So switch to a safer approach by using "ctrl-x ." instead. --- etc/zsh/zshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 6a6f1e6..1d0f357 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -992,11 +992,10 @@ zle -N accept-line zle -N Accept-Line zle -N Accept-Line-HandleContext -# power completion - abbreviation expansion # power completion / abbreviation expansion / buffer expansion # see http://zshwiki.org/home/examples/zleiab for details # less risky than the global aliases but powerful as well -# just type the abbreviation key and afterwards ',.' to expand it +# just type the abbreviation key and afterwards 'ctrl-x .' to expand it declare -A abk setopt extendedglob setopt interactivecomments @@ -1408,7 +1407,7 @@ bind2maps emacs -- Right forward-char bind2maps viins vicmd -- Right vi-forward-char bind2maps viins vicmd -- Right vi-forward-char #k# Display list of abbreviations that expand when followed by ,. -bind2maps emacs viins -- -s ',.' zleiab +bind2maps emacs viins -- -s '^x.' zleiab bind2maps emacs viins -- -s '^xb' help-show-abk bind2maps emacs viins -- -s '^xM' inplaceMkDirs #k# display help for keybindings and ZLE -- 2.1.4