Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Case-insensitive completion



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