Document bash vi bind mapping
Shell history suggest box - easily view, navigate, search your history
Brought to you by:
mindraider
Originally created by: grugnog
Originally owned by: dvorka
It took me a few minutes to figure these out, and I suspect this may be useful to others:
bind '"\C-r": "\e^ihh \n"'
For the curious, \e is an escape, ^ to go to start of line, i to reenter insert mode and \n to execute the command. Perhaps there is a snazzier way of doing this, but it seems to work for me, so far.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: livibetter
I have only used Emacs mode in Bash even I am a Vim user. The configuration might just need a line or two, but
hh --show-configuration
would need more, here is what I've tried, first time using readline's$if
:Doesn't look clean, maybe
bind -v | grep 'set keymap emacs'
?View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: dvorka
Thank you @grugnog - I added the binding to MD documentation and man page. @livibetter I appreciate you suggestion, however, it would probably make default configuration too complicated - I added a hint to the default configuration produced by
hh -s
and enriched MD documentation.View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Ticket changed by: dvorka
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: dvorka
... @livibetter I changed (slightly ;) my mind -
hh
will produce default configuration as you suggested, but I will do that in time of runninghh -s
(i.e. in C) and not in the produced script. I will be optimistic in a sense that user made Emacs vs. Vi choice and wont change it. It's better than nothing and slightly worse than what you suggested. I created [#126] enhancement.Related
Tickets: #126