From: Frank Terbeck Date: Thu, 20 Jul 2017 21:56:15 +0000 (+0200) Subject: Bind insert-datestamp to "ESC d" (Alt-d on many terminals) instead of "Ctrl-e d" X-Git-Tag: v0.14.3~2 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=f98b04694856a470d5577f952111109ba2be72a0 Bind insert-datestamp to "ESC d" (Alt-d on many terminals) instead of "Ctrl-e d" The github issue #62 for the grml-etc-core repository noted a delay with the default Ctrl-e binding in emacs mode. This is caused by a binding where Ctrl-e is a prefix. The shells waits for a timeout to figure out if the user wanted the "Ctrl-e" binding, or or if there's a d coming to complete the "Ctrl-e d" binding. Closes: #62 --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 478aa1e..51694da 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 '\ed' insert-datestamp #k# Insert last typed word bind2maps emacs viins -- -s "\em" insert-last-typed-word #k# A smart shortcut for \kbd{fg}