From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18317 invoked by alias); 4 Jan 2013 04:58:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30939 Received: (qmail 18637 invoked from network); 4 Jan 2013 04:58:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.49 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=dcMc8umseDHS6zg18cgZpum/QgZfe/NGVcaRTZOuVO0=; b=HabukoOaPp1CK9+w11KsjZtrX47fNmBhJPkSR7pp42OZ6S6h/zEWmUHjii0pD3zcyF efO4urO/tmE/cMDczK/QO6LQHh6+ljeV2fTAwxmgertKYqLAwod/lonpox6ar24Oqc+S ZVEAG+RpBa/8jf4OEU9OGBeki+YKDCB65y3G9H1UhXurtLiN+KWnUZIKbghUFVjDXbw4 m1l721woTrBVQy6n9VzRspXVHb6g58Y/bkdrp/ywCmTKG/oaHMgw4Y+/CYTkv+oIErIe VjexSkBfwr07vFzQSaps5IGJoTiH4emmpQtHTrbH7drqxhrkxGjYubfB8q+V58vBf3g8 znwg== X-Received: by 10.66.73.225 with SMTP id o1mr151914622pav.70.1357271939209; Thu, 03 Jan 2013 19:58:59 -0800 (PST) Sender: Dave Yost Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1502\)) Subject: Re: A key to delete a history item would be nice From: Dave Yost In-Reply-To: <20130103231702.GB1901@mjolnir> Date: Thu, 3 Jan 2013 19:58:56 -0800 Cc: "zsh-workers@zsh.org" Content-Transfer-Encoding: quoted-printable Message-Id: <55CCBA75-D73F-4155-B2DC-B43B8849B106@Yost.com> References: <20130103231702.GB1901@mjolnir> To: Ivan Sichmann Freitas X-Mailer: Apple Mail (2.1502) Thanks for the suggestions. But my RFE stands. It is a useful thing to = be able to clean up clutter. The feature I=92m proposing does that. On Thu 2013-01-03, at 03:17 PM, Ivan Sichmann Freitas = wrote: > On Sat, Dec 29, 2012 at 01:22:02PM -0800, Dave Yost did gyre and = gimble: >=20 >> I=92m using up-arrow to look back in history. Some of those history = items >> are useless because they are mistakes. >=20 > I would recommend using history-incremental-search-backward and > history-incremental-pattern-search-backward (the former has the = default > binding of Control+r in emacs mode) even if you manage to delete items > from your history. They are much faster and enable you to search = history > based in words or patterns. >=20 >> It would be nice if there were a keystroke that would delete the = current history item. >=20 > AFAIK there's no default zle widget to delete a item from the history, > but I think you can achieve it by creating a custom zle widget (se > zshzle(1) manpage). However, there are ways to control what is = recorded > in history, see options HIST_IGNORE_DUPS, HIST_IGNORE_SPACE and others > at zshoptions(1). >=20 > --=20 > Ivan Sichmann Freitas > GNU/Linux user #509059 > SDF Arpa Member http://isf.sdf.org/about.html