zsh-users
 help / color / mirror / code / Atom feed
From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: Global History Substitution
Date: Tue, 08 Nov 2005 19:07:55 +0000	[thread overview]
Message-ID: <qit1n1p9s01bsccibjbkgcg7elis6ovf36@4ax.com> (raw)
In-Reply-To: <20051104161249.0592620f.pws@csr.com>

On Fri, 4 Nov 2005 16:12:49 +0000,  wrote:

>Bart Schaefer <schaefer@brasslantern.com> wrote:
>> On Nov 4, 11:30am, Peter Stephenson wrote:
>> } 
>> } It does mean
>> } 
>> }   !!:s/foo/bar/:gs/this/that/
>> } 
>> } will change meaning, associating the g with the preceeding substitution
>> 
>> Do you mean the following substitution?
>
>No, I did mean the preceeding; that was the change of meaning.  Before it
>would have meant an s followed by a gs.  With the original proposal it
>would have meant an s...:g followed by an s.
>
>> } Hmm, how about
>> } 
>> }   !!:s/foo/bar/:G
>> 
>> Yes, I think that would be OK, especially because it also disambiguates
>> !!:s/foo/bar/:Gs/this/that/ -- the :G can always apply to the preceding
>> substitution and :g always to the following one.
>> 
>> That just leaves the question of whether the G is ignored in the case
>> !!:Gs/foo/bar/ (where there is no preceding substitution).
>
>I think it's probably simpler always to require g at the start and :G at
>the end.  I'll commit it in that form.

That's the beauty of zsh (and open source generally) that a few experts can respond to user requests
and decide that a new feature would be jolly useful and implement it. Quite exciting really!

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


      reply	other threads:[~2005-11-08 19:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 19:07 Chris Johnson
2005-11-03 19:36 ` Philip Kizer
2005-11-03 22:08 ` zzapper
2005-11-04 11:09 ` Peter Stephenson
2005-11-04 11:30   ` Peter Stephenson
2005-11-04 13:12     ` zzapper
2005-11-04 15:13     ` Bart Schaefer
2005-11-04 16:12       ` Peter Stephenson
2005-11-08 19:07         ` zzapper [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=qit1n1p9s01bsccibjbkgcg7elis6ovf36@4ax.com \
    --to=david@tvis.co.uk \
    --cc=zsh-users@sunsite.dk \
    /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).