Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "the backslashes" Re: Dynamic directory name function
- X-seq: zsh-workers 36612
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: "the backslashes" Re: Dynamic directory name function
- Date: Thu, 24 Sep 2015 16:18:11 +0100
- In-reply-to: <150924081019.ZM835@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20150922204251.05f3d291@ntlworld.com> <150922210756.ZM30253@torch.brasslantern.com> <20150923094821.5c5d0b80@pwslap01u.europe.root.pri> <150923231024.ZM32382@torch.brasslantern.com> <20150924093752.581dcee9@pwslap01u.europe.root.pri> <150924081019.ZM835@torch.brasslantern.com>
On Thu, 24 Sep 2015 08:10:19 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 24, 9:37am, Peter Stephenson wrote:
> }
> } There's also the backslashes,
> } but more careful people than me probably don't mind those.
>
> Thoughts on allowing modules to define the sort of keyword+builtin
> pair that we used for typeset ? Then zstyle could hook itself to
> the parenthesized-list-parsing code and look like
>
> zstyle ZDN_wrapper_name zdn_top (
> g ~/git
> ga ~/alternate/git
> gs /scratch/$USER/git/:second2
> :default: /:second1
> )
>
> Of course that would be opening a potential can of syntactic worms.
I've often wanted something like this, but it's really tricky to get
right. In particular, I'd be unhappy about it if it's not following an
assignment --- parentheses are just too heavily overloaded to make this
can of worms more than a pig's breakfast (or do I mean dog's dinner?),
which isn't my cup of tea.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author