From 65ac134204e0988d609484b6765f17b9921d7722 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Fri, 18 Aug 2017 14:09:25 +0200 Subject: [PATCH] Move insert-datestamp to "C-x d" from "M-d" "M-d" is obviously used in emacs mode by default. The "C-x ..." prefix is used for other purposes in our setup already and this particular binding is free. Closes: #62 --- etc/zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 51694da..ca90043 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1087,7 +1087,7 @@ function help-show-abk () { zle -N help-show-abk -# press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd +# press "ctrl-x d" to insert the actual date in the form yyyy-mm-dd function insert-datestamp () { LBUFFER+=${(%):-'%D{%Y-%m-%d}'}; } zle -N insert-datestamp @@ -1477,7 +1477,7 @@ bind2maps emacs viins -- -s ' ' magic-space #k# Trigger menu-complete bind2maps emacs viins -- -s '\ei' menu-complete # menu completion via esc-i #k# Insert a timestamp on the command line (yyyy-mm-dd) -bind2maps emacs viins -- -s '\ed' insert-datestamp +bind2maps emacs viins -- -s '^xd' insert-datestamp #k# Insert last typed word bind2maps emacs viins -- -s "\em" insert-last-typed-word #k# A smart shortcut for \kbd{fg} -- 2.1.4