zsh-workers
 help / color / mirror / code / Atom feed
From: Dave Yost <Dave@Yost.com>
To: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: A key to delete a history item would be nice
Date: Thu, 3 Jan 2013 19:58:56 -0800	[thread overview]
Message-ID: <55CCBA75-D73F-4155-B2DC-B43B8849B106@Yost.com> (raw)
In-Reply-To: <20130103231702.GB1901@mjolnir>

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@gmail.com> 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


      reply	other threads:[~2013-01-04  4:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-29 21:22 Dave Yost
2013-01-03 23:17 ` Ivan Sichmann Freitas
2013-01-04  3:58   ` Dave Yost [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55CCBA75-D73F-4155-B2DC-B43B8849B106@Yost.com \
    --to=dave@yost.com \
    --cc=ivansichfreitas@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).