zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
+zle -N history-beginning-search-menu
accept-line
bind2maps emacs -- -s "$key_info[Control]N" history-substring-search-down
bind2maps vicmd -- -s "j" history-substring-search-down
+#k# search history and present a menu
+bind2maps emacs vicmd -- -s "$key_info[Control]X$key_info[Control]X" history-beginning-search-menu
+
#k# Insert files and test globbing
is4 && bind2maps emacs viins -- -s "$key_info[Control]Xf" insert-files
#k# Edit the current line in \kbd{\$EDITOR}