Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A key to delete a history item would be nice
- X-seq: zsh-workers 30939
- From: Dave Yost <Dave@xxxxxxxx>
- To: Ivan Sichmann Freitas <ivansichfreitas@xxxxxxxxx>
- Subject: Re: A key to delete a history item would be nice
- Date: Thu, 3 Jan 2013 19:58:56 -0800
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <20130103231702.GB1901@mjolnir>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <F2DC99E6-8445-4B1D-8E3E-AA2F8A09845B@Yost.com> <20130103231702.GB1901@mjolnir>
- Sender: Dave Yost <daveyostcom@xxxxxxxxx>
Thanks for the suggestions. But my RFE stands. It is a useful thing to be able to clean up clutter. The feature I’m proposing does that.
On Thu 2013-01-03, at 03:17 PM, Ivan Sichmann Freitas <ivansichfreitas@xxxxxxxxx> wrote:
> On Sat, Dec 29, 2012 at 01:22:02PM -0800, Dave Yost did gyre and gimble:
>
>> I’m using up-arrow to look back in history. Some of those history items
>> are useless because they are mistakes.
>
> 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.
>
>> It would be nice if there were a keystroke that would delete the current history item.
>
> 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).
>
> --
> Ivan Sichmann Freitas
> GNU/Linux user #509059
> SDF Arpa Member http://isf.sdf.org/about.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author