Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
umount completion context and tags
- X-seq: zsh-users 19526
- From: Silas Silva <silasdb@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: umount completion context and tags
- Date: Sun, 14 Dec 2014 11:15:41 -0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=gh9Z2SpPl9eg/uX1sfrMK70/USY8ZBPtRtRM8TfMB5k=; b=Bwv8vIAaQQsQlyan1YRd3VpsOnWNDH1HRZnzA+H/ldwPPSrLnuRLLZGS1ffbAm2cAH 6C/Ka3LGzIKIcQHJ6rvzLcvycBExmt4mhFfNo8xvIzwXxbqPASRB8Hbs/2rD3BHaVskZ AL4IhSNdpD2AoFdUuOSnKWCT2nlco1gYVh6H3OeQZLHmOMwSqc1Mpjhr41aHeF+6St+F MiXpH60D18sxbuZkECoGAz2mQnNAGYmZdRiz5NXxhDX8nO9T0jk5YiZHvmtsrvPKI/k+ 4lMFXrmQR/6FOE/tOvVepJfQ/nWYbEjOpMd7vBLzhDkvyCiLzWJ0ieA3Vk0X4V48Q2+E nuRw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author