Inspired by #14 . It would be great, if we could rebind Up and Down keys for incremental search. The proposition is to implement simple functions:
parseCommandKeyI :: (Monad m) => String -> Maybe (Command m InsertMode (Maybe String))
parseCommandKeyC :: (Monad m) => String -> Maybe (Command m CommandMode (Maybe String))
with available inputs like "history-incremental-search-backwards" and others. After that, we can replace viKeyCommands and emacsCommands with choiceCmd [bindCmd, viKeyCommands] and choiceCmd [bindCmd, emacsCommands] in getInputCmdLine. If you approve this idea, I'll prepare the commit.
Inspired by #14 . It would be great, if we could rebind Up and Down keys for incremental search. The proposition is to implement simple functions:
with available inputs like "history-incremental-search-backwards" and others. After that, we can replace
viKeyCommands
andemacsCommands
withchoiceCmd [bindCmd, viKeyCommands]
andchoiceCmd [bindCmd, emacsCommands]
ingetInputCmdLine
. If you approve this idea, I'll prepare the commit.