Bind insert-datestamp to "ESC d" (Alt-d on many terminals) instead of "Ctrl-e d"
authorFrank Terbeck <ft@grml.org>
Thu, 20 Jul 2017 21:56:15 +0000 (23:56 +0200)
committerFrank Terbeck <ft@grml.org>
Thu, 20 Jul 2017 22:06:35 +0000 (00:06 +0200)
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

etc/zsh/zshrc

index 478aa1e..51694da 100644 (file)
@@ -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<enter>}