zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: zsh-users@sunsite.dk
Subject: Re: skipping duplicates in some zle functions
Date: Fri, 7 Nov 2003 10:34:54 +0100	[thread overview]
Message-ID: <20031107093454.GC27553@gmx.de> (raw)
In-Reply-To: <1031106153141.ZM5237@candle.brasslantern.com>

On Thu, Nov 06, 2003 at 03:31:41PM +0000, Bart Schaefer wrote:
> On Nov 6,  9:54am, Dominik Vogt wrote:
> }
> } I want to enhance it so that it skips lines that are identical
> } to the line that is currently displayed.
> 
> I don't suppose `setopt hist_find_no_dups' does what you want?

That's exactly what I need.  Thanks.

> If not, have you considered `setopt hist_ignore_all_dups' so that the
> duplicate lines are never entered into the history in the first place?

I like to repeat commands I have typed recently in sequence, so
this isn't quite what I want.  E.g:

  $ vi foo.c
  $ gcc -o foo foo.c
  $ ./foo
  3x<Up>
  $ vi foo.c
  3x<Up>
  $ gcc -o foo foo.c
  3x<Up>
  $ ./foo
  
...

Ciao

Dominik ^_^  ^_^


  reply	other threads:[~2003-11-07  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-06  8:54 Dominik Vogt
2003-11-06 15:31 ` Bart Schaefer
2003-11-07  9:34   ` Dominik Vogt [this message]
2003-11-11 13:34     ` Phil Pennock

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=20031107093454.GC27553@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=zsh-users@sunsite.dk \
    /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).