Zsh Mailing List Archive
Messages sorted by:
accept-exact and current directory
- X-seq: zsh-users 20552
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: accept-exact and current directory
- Date: Sun, 13 Sep 2015 20:12:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VWlo9EjdK3xVA3fYL4Ef13qSQec/VREagdG4Chf+a7w=; b=UomyyOhCfKKoJLZBP5Wo9Y5S6PAfW3Pn5RXWNgf2TPxXif/IVx2f8luJ6RwYGKwMba CaGbZXVqLSXgArkDAIYmmdUg/rs/NP0Di6GLAWV37bbBD+k4SYIJMScW32s8RLAX8zaY r1xzmCw8VuLx4vb+CjKIKYUX5b5bRMqsVYhrbJPYL2JD3Cz3uGjV6esrg35gUy5ZflJO cUOEe5rQlLXKbnkQy3h+QheD9ON1RLGhCdvI93LUKUU01hwvpOIFzm62TVYxP+B7K8T8 ICqkqj5RLH5b7P4J+dlc8Q/qm6dsrjONwv+7pp0a8npB4CH343FIz4NgHRWtEwTCIBUE 7r7g==
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I use menu completion, and a while ago I found the accept-exact zstyle:
zstyle ':completion:*' accept-exact true
This works very well for me, as I find I often write the whole of a (short)
word, and then on reflex hit <tab> without really intending to do so.
Without the "accept-exact" zstyle, I often change what I wanted to write.
However, I recently discovered a problem with this. Suppose I want to
complete on some hidden file (i.e. beginning with a dot) in my home
directory. I write:
Now, since accept-exact is active, zsh assumes that I mean '.' for current
directory, and completes with:
since '.' is a directory. After that I have to manually remove the trailing
slash, and try to remember the first letter in the file I'm looking for.
Is there some way to specify that I never want '.' to match, as in the path
above and similar cases? I can't see a case where I would ever want to
write "/somepath/./" . Without a way to exclude '.', I guess I'll have to
stop using accept-exact.
Messages sorted by: