Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Case-insensitive completion
- X-seq: zsh-users 6596
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh-users List <zsh-users@xxxxxxxxxx>
- Subject: Re: Case-insensitive completion
- Date: Wed, 17 Sep 2003 14:36:57 +0000
- In-reply-to: <17942.1063783839@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030914103053.GA827@xxxxxxxxxxxxxxxxxxxxxxxx> <1030914185817.ZM27558@xxxxxxxxxxxxxxxxxxxxxxx> <20030915190817.GA582@xxxxxxxxxxxxxxxxxxxxxxxx> <1030916170354.ZM30176@xxxxxxxxxxxxxxxxxxxxxxx> <17942.1063783839@xxxxxxxxxxx>
On Sep 17, 9:30am, Oliver Kiddle wrote:
}
} Bart wrote:
}
} > Normally the way to do that would be to use different keybindings for
} > "complete case-insensitively" vs. "complete case-sensitively" and tell
} > zsh your preference by which of them you invoke.
}
} Would always use _generic for that type of thing myself. Avoids the need
} for a separate function file:
Ah, yes, I'd completely (ahem) forgotten about _generic.
The only advantage to using a separate file is the automatic #compdef,
which isn't much advantage at all.
} zle -C case-sensitive complete-word _generic
} zstyle ':completion:case-sensitive::::' completer _expand _complete _ignored
In fact, you don't even need that style unless using an unusual set of
completers; this one is sufficient:
} zstyle ':completion:case-sensitive:*' matcher-list ''
Messages sorted by:
Reverse Date,
Date,
Thread,
Author