Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: umount completion context and tags
- X-seq: zsh-users 19527
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: umount completion context and tags
- Date: Sun, 14 Dec 2014 16:15:05 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ucCj/HFV8XQJe0vhDEjILejdTVkXplKibQh4BrteV2E=; b=BWIYXF/xpYjRySmV0GlBF/84PWCdW8I7AGhb0gxv97ELWOBuSYjgjcjZWjFrSiNeMd GXC+VMQzyqcDbkhXr4mmTsUS7GiP1bQ2HyJkq/QIfgihw5HhEihwmoI1rqPpGxC0yeTS f/GOGrS7164VGoQpOfD2TfgjnKkXuPXcyNTcQIlycD1iuXiq5uqBnd0WeSWi+pnvuKYC icuEhGv/RDJ4ptNHNezaA31nfBto8LS5QkiH+0zMsLfB/rdH/Bm6q6Mo20zfRtcEukm4 p/xOiB2jSE4PS0IEyyrMREbf2gag8YJa+b9SDUclKXMpnYm8naq6S8mzZVaG2yNcFwLV h9qQ==
- In-reply-to: <20141214131541.GB1489@rikku>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141214131541.GB1489@rikku>
On Sun, Dec 14, 2014 at 2:15 PM, Silas Silva <silasdb@xxxxxxxxx> wrote:
> 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!
That's weird in at least two ways. I get the style to work only if i
make it ":completion:*". Secondly, those are filesystem types, not
labels, and are only valid after -t afaik(?), and umount -t produces a
broken completion.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author