Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
accept-line-and-down-history and push-input
- X-seq: zsh-users 15486
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: accept-line-and-down-history and push-input
- Date: Tue, 26 Oct 2010 10:06:47 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Yhi4DQ2OPjKhThcYv5S5iQhZsuIB7sW+wQJ149Z+a70=; b=siR9ptPNo8bcWheBbRC3jU6zJLLG2ObpwvyRopl7KokaeZit4tQQf3Pgdd1/FIoZQa KsiIaA0WI1aM/xRzNOSnhNzGw+WO7ZaeQ5xBx86qeWDLPKs/oF5zxAoKCXT5bKuzVawd EAwFQVJk1hfuwM8dpIB5K3B3QOD+Tdp6n7CeE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fTYSP5FMeynx0RrvQaPnBayhE+4o6BfB3lAr5KPh6khXZETBZr9hwWdcI0GvNSH+sW cJxtumLB43bk3gszjBF6n++a6QOAaIRxwCSLtV2exkaSumZTSuuhNHkgoLaMAy9mttkd +v0YYWYFrizqcBE/h2x1DDvECH4iwx0FJ/uDs=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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