Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: another Problem with ignore-line
- X-seq: zsh-users 7956
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: Zsh-users List <zsh-users@xxxxxxxxxx>
- Subject: Re: another Problem with ignore-line
- Date: Tue, 31 Aug 2004 16:41:44 +0200
- In-reply-to: <18424.1093955224@xxxxxxxxxxxxxxxxxxxxx>
- Kinfo: virscan ok
- Kinfo: NoRelay, NoSpam
- Kreccount: 1
- Mail-followup-to: Zsh-users List <zsh-users@xxxxxxxxxx>
- 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> <18424.1093955224@xxxxxxxxxxxxxxxxxxxxx>
Hi Oliver Kiddle,
> 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.
Ahhhh, sounds logical!
> 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.
Hm, but that seems to conflict with
zstyle ':completion:*' ignore-parents parent pwd
so that pressing TAB after "mv a" leads to "mv a/.."
if the subdir "a" is empty.
Thanks for you help and the pointer to zsh-workers!
Andy.
--
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Form good habits. They are just as hard to break as the bad ones!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author