zsh-users
 help / color / mirror / code / Atom feed
* Customizing completion, omit urls
@ 2011-09-16 13:01 Daniel
  2011-09-16 14:06 ` Mikael Magnusson
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel @ 2011-09-16 13:01 UTC (permalink / raw)
  To: zsh-users

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.






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Customizing completion, omit urls
  2011-09-16 13:01 Customizing completion, omit urls Daniel
@ 2011-09-16 14:06 ` Mikael Magnusson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2011-09-16 14:06 UTC (permalink / raw)
  To: Daniel; +Cc: zsh-users

On 16 September 2011 15:01, Daniel <quite@hack.org> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-16 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-16 13:01 Customizing completion, omit urls Daniel
2011-09-16 14:06 ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).