From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11990 invoked from network); 16 Jan 1997 13:36:46 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 16 Jan 1997 13:36:46 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA26693; Thu, 16 Jan 1997 08:41:00 -0500 (EST) Resent-Date: Thu, 16 Jan 1997 08:34:25 -0500 (EST) Date: Thu, 16 Jan 1997 16:36:19 +0300 (MSK) From: Andrej Borsenkow X-Sender: bor@itsrm1.mow.sni.de Reply-To: borsenkow.msk@sni.de To: Peter Stephenson cc: Zsh users mailing list Subject: Re: How to kill string but leave it in history? In-Reply-To: <199701161215.NAA02652@hydra.ifh.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"FtzD71.0.1V6.WvYto"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/610 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Thu, 16 Jan 1997, Peter Stephenson wrote: > Andrej Borsenkow wrote: > > So - is there any way to cancel current command line but leave it in > > history? > > how about > > bindkey -s "^X^H" "^['^A print -s ^M" > > works best with histignorespace set. > Not exactly. 1. It doesn't work with multiline command (sorry, I had to be more precise on this). E.g. if .... then if> kkldsfkl; ^X^H Doesn't push the whole in history. 2. It echows the whole command (well, rather cosmetic). Actually standard 'push-line' would suite just fine - _if_ it wouldn't pop line again after next command. thanks ------------------------------------------------------------------------- Andrej Borsenkow Fax: +7 (095) 252 01 05 SNI ITS Moscow Tel: +7 (095) 252 13 88 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de -------------------------------------------------------------------------