From: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>
To: Dave Yost <Dave@Yost.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 21:17:02 -0200 [thread overview]
Message-ID: <20130103231702.GB1901@mjolnir> (raw)
In-Reply-To: <F2DC99E6-8445-4B1D-8E3E-AA2F8A09845B@Yost.com>
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
next prev parent reply other threads:[~2013-01-03 23:17 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 [this message]
2013-01-04 3:58 ` Dave Yost
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=20130103231702.GB1901@mjolnir \
--to=ivansichfreitas@gmail.com \
--cc=Dave@Yost.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).