Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion of paths with filename generation or brace expansion involved
- X-seq: zsh-users 18914
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Completion of paths with filename generation or brace expansion involved
- Date: Thu, 26 Jun 2014 16:15:09 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=pin/KkKyojni2a1S9gf/d57vQQKxzpebW9NXOOgUtpI=; b=dTamKAbFXGOpx67jctzHwMN9ol+pqQqVQz6SdThPTOIFBt6MolviQVdIkHBcI93zxH Qjt9/22lMgQ/BV/ngMGbCOMyaJzXe7JMmsWxONOAo68B0zkXWcNLGiPhGeGgwAwvKGhV OFkpo33Vdg4Mn5zqe36BXhRLOrF01nnBai+fggfbt6+oTPtEr0lqz1dXv8XTtlQmydI9 w6E/Y39qmUQBCFiitpfeayzCI8wx5g6d9Va4HZ9lvzr69AaSjbsCWvHU5Ep8vEa29BXf CYCc9NrmhSHnGqfSELsegVqjxwtJguEf9IsKCLQ4r1qzf5ATZl2crITI2Su+KxCfmVHO CP9Q==
- 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
Hi,
Let's consider this filesystem:
/foo/bar/fish
/foo/bar/zoo
/foo/bar/zsh
/foo/baz/zsh
When I type:
$ /foo/ba{r,z}/z<tab>
then thanks to brace expansion, my buffer is replaced with:
$ /foo/bar/z /foo/baz/z
Similarly, when I type:
$ /foo/ba(r|z)/<tab>
then thanks to filename generation, my buffer is replaced with:
$ /foo/bar/ /foo/baz/
Also, if instead of <tab>, I hit <shift>+<tab>, I get a menu which
allows me to choose between possible expansions / generations and the
original expression.
What I would like to know, is if there's a way to have completion at
this point, without modifying the part of the buffer that I've already
typed. In other words, is it possible, when I type:
$ /foo/ba{r,z}/z<somekey>
$ /foo/ba(r|z)/<somekey>
to have my buffer *not* changed, but get suggestions for files that are:
1) either in /foo/bar *or* /foo/baz
2) both in /foo/bar *and* /foo/baz
?
For case 1), I'd expect the buffer to be changed to:
$ /foo/ba{r,z}/z
file
zoo zsh
after non-modifying brace expansion, or
$ /foo/ba(r|z)/
file
fish zoo zsh
after non-modifying filename generation.
For case 2), I'd expect the buffer to be changed to:
$ /foo/ba{r,z}/zsh
after non-modifying brace expansion, or
$ /foo/ba(r|z)/zsh
after non-modifying filename generation.
Any idea?
Thanks in advance!
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author