zsh-users
 help / color / mirror / code / Atom feed
* umount completion context and tags
@ 2014-12-14 13:15 Silas Silva
  2014-12-14 15:15 ` Mikael Magnusson
  2014-12-14 16:31 ` Bart Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: Silas Silva @ 2014-12-14 13:15 UTC (permalink / raw)
  To: zsh-users

Hi there!

I was trying to tweak umount completion by using the tag-order style.
AFAIK, umount completion.  According to "umount ^Xh", we have:

    tags in context :completion::complete:umount::
        argument-rest options  (_arguments _mount (eval))
    tags in context :completion::complete:umount:argument-rest:
        device-labels device-paths directories  (_alternative _mount (eval)) 
        device-paths                            (_canonical_paths _canonical_paths _alternative _mount (eval))

It means that we have at least three tags:

    device-labels
    device-paths
    directories

device-labels is useless for me, so I tried to exclude it:

    zstyle ':completion:*:mount:*' tag-order '!device-labels'

But, it simply doesn't work!  ^Xh still gives me all tags.  Taking a
glance at the _mount completion, it has tags above hardcoded, but I
didn't look further.

In reality, what I want is to avoid behaviour like (in Linux):

    mount /dev/sdb1 /mnt/usb0
    cd /mnt
    umount u<Tab>
    umount udev  (!!!)

Any help?

Thank you!

-- 
Silas Silva


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

end of thread, other threads:[~2014-12-14 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-14 13:15 umount completion context and tags Silas Silva
2014-12-14 15:15 ` Mikael Magnusson
2014-12-14 16:53   ` Bart Schaefer
2014-12-14 17:13     ` Mikael Magnusson
2014-12-14 17:47       ` Bart Schaefer
2014-12-14 18:51         ` Mikael Magnusson
2014-12-14 16:31 ` Bart Schaefer

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).