Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Sundry Completion Questions ($_ $(^^) $(!!:s//)
- X-seq: zsh-users 19307
- From: Sonny Michaud <michaud.sonny@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Sundry Completion Questions ($_ $(^^) $(!!:s//)
- Date: Sat, 01 Nov 2014 20:38:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=2QXnmJ6qsKXvTs7ypvaowXLBNYM02wXl02hVXsN5wg4=; b=Lo/rcau9ych7thk4cR3RsnZQ2K0teMDda6c+c6+9orDOVkN35KE37IPWdt55FYBL/q Yz4HOXwFj8u41dbC1725C6Zi1DBjCJxLQfkSyUx+xAaE5dDoJTxE4EVwdZhDnTeoDSAN TCsla8mpf6fN4FMF/R5pGAxSDQjhTyvvk4XbBcHO4VC3eA9Niz2jKyrn86Y2cDQRfFIq nXnmCRJ4ExMScyXi+qde98iT1bwDrWruYpDXCqiWzdB1kyZQ/IZ9B4Biz1EcZa7bMrYJ l5VzBXlZrVCyGWoEfZlDpssG+V1yoU7aiiJyUW3zuqQoDZ9pXU3nIP35ZmPpHbgrJ030 1xdw==
- 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
Good evening!
I have a few questions regarding some different completion mechanisms in
zsh.
1) I noticed that $_<TAB> does not expand. I am wondering if other
parameter substitutions do expand and, if so, if there is an equivalent
for $_ that is similarly pithy. If not, is this something that deserves
a feature request?
2) Quick history substitution does not expand in subcommands. For
instance, the following example does nothing. I am not sure if this is
also something that would warrant a feature request.
$ touch foo
$ echo $(^touch^cat)
3) Since the above does not work, I usually use $(!!:s/foo/bar), which
has bizarre behavior, depending on whether or not a trailing slash is
provided. This one feels like a bug proper, but it may have something to
do with what I am attempting in particular.
$ grep -r foo
$ vim $(!!:s/-r/-rl)<TAB> -> vim $(grep -rl) foo
whereas
$ grep -r foo
$ vim $(!!:s/-r/-rl/)<TAB> -> $ vim $(grep -rl foo)
If anyone has any thoughts or suggestions about this, I would really
appreciate the feedback. Thanks!
- Sonny
Messages sorted by:
Reverse Date,
Date,
Thread,
Author