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

Re: Customizing completion, omit urls



On 16 September 2011 15:01, Daniel <quite@xxxxxxxx> wrote:
> Newbie to zsh here,
>
> Is it possible to make the mplayer completion omit urls? I don't want
> those emtpy cdda://, file: etc. I am looking at the source, but cannot
> really discern wether I can use zstyle to modify tags/requested
> urls/files in some way.

zstyle ':completion:*:mplayer:argument*' tag-order '! urls'

This will still offer the protocols when you're completing in an empty
directory, if you don't want that, you can do this instead:
zstyle ':completion:*:mplayer:argument*' tag-order - '! urls'

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author