From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13984 invoked by alias); 26 Oct 2010 08:07:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15486 Received: (qmail 8306 invoked from network); 26 Oct 2010 08:06:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) 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= MIME-Version: 1.0 Date: Tue, 26 Oct 2010 10:06:47 +0200 Message-ID: Subject: accept-line-and-down-history and push-input From: Mikael Magnusson To: Zsh Users Content-Type: text/plain; charset=UTF-8 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