Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: another Problem with ignore-line
- X-seq: zsh-users 7954
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh-users List <zsh-users@xxxxxxxxxx>
- Subject: Re: another Problem with ignore-line
- Date: Tue, 31 Aug 2004 14:27:04 +0200
- In-reply-to: <20040831083820.GA21015@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040826181857.GF10369@localhost> <20040826221435.GA28932@xxxxxxxxx> <20040830151313.GA3639@xxxxxxxxx> <10449.1093879550@xxxxxxxxxxxxxxxxxxxxx> <20040830172050.GC3639@xxxxxxxxx> <Pine.LNX.4.61.0408301413080.3292@xxxxxxxxxxxxxxxxxx> <20040831083820.GA21015@xxxxxxxxx>
Andy Spiegl wrote:
> Here are my current completion settings (I removed as much as possible):
> # General completion technique
> zstyle ':completion:*' completer _complete
>
> # don't complete the same filename
> zstyle ':completion:*:(rm|cp|mv):*' ignore-line yes
>
Try changing the ignore-line style to `other'. That is:
zstyle ':completion:*:(rm|cp|mv):*' ignore-line other
Otherwise the current word (`a' in this case) is ignored along with any
preceding words.
The default if you don't have a completer style is for _ignored to be
run after _complete so normally that would pick up the current word. So
if you prefer, you can add the _ignored completer.
See the zsh-workers discussion starting 15998 for more on the
limitations of ignore-line.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author