Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

accept-line-and-down-history and push-input



I sometimes use accept-line-and-down-history to rerun a series of
commands, but occasionally need to run another command at some point
in the middle, but when returning from push-input, I'm left at the end
of history, not where I was. Is there some clever way I can wrap
push-input, or something, to make this work?

In case it wasn't absolutely clear,
% : one
% : two
% : three
% : lots of other history here
up to the first and ctrl-o gives
% : two
then push-input and running something again leaves
% : two
as expected but ctrl-o now gives an empty command line, I would like
it to leave me at
% : three

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author