From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Dominik Vogt" <dominik.vogt@gmx.de>, "Zsh Users" <zsh-users@zsh.org>
Subject: Re: Brace expansion vs. TAB
Date: Sun, 08 Dec 2019 01:23:06 +0000 [thread overview]
Message-ID: <ae90825d-5806-4094-a4c8-f5ad1ef4d6d1@www.fastmail.com> (raw)
In-Reply-To: <20191207133312.dy7ryy3qfpvwqva4@gmx.de>
Dominik Vogt wrote on Sat, 07 Dec 2019 13:33 +00:00:
> alias -g '*.CH'='*.[ch](|xx|pp)'
> $ grep foo **/*.CH
# apt install the-silver-searcher
% ag --cc foo
% ag --cpp foo
> Or some way to preprocess the command line with a sed
> script.
You can certainly do that with widgets: just pass ${BUFFER} through sed.
If you want syntax awareness, do buf="$PREBUFFER$BUFFER" then look into
${(z)buf}. Don't forget to also use ${(Z)} if needed (z-sy-h has examples).
prev parent reply other threads:[~2019-12-08 1:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 17:18 Dominik Vogt
2019-12-07 10:05 ` Mikael Magnusson
2019-12-07 12:32 ` Dominik Vogt
2019-12-07 13:23 ` Re[2]: " Manuel Presnitz
2019-12-07 13:33 ` Dominik Vogt
2019-12-08 1:23 ` Daniel Shahaf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae90825d-5806-4094-a4c8-f5ad1ef4d6d1@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--cc=dominik.vogt@gmx.de \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).