Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] bracketed-paste: change quoting style



Bart Schaefer wrote on Thu, Aug 13, 2015 at 16:57:09 -0700:
> On Aug 13, 11:19pm, Daniel Shahaf wrote:
> } 
> } I agree that separating the "paste it" and "quote it" to separate steps
> } would be good, but it doesn't seem to work in current git: invoking
> } quote-region quotes the entire command line, not only the pasted part.
> } Does it depend on an uncommitted patch or something?
> 
> No, but you have to set the mark before pasting; the action of pasting
> does not make the region active (though it replaces the active region
> if there is one).

I see; so the workflow is <set-mark-command><paste><quote-region>.  This is
nice.  However, I will keep using <NUMERIC><paste>, because it's fewer
keypresses.

As to changing the default quoting style, I went ahead and pushed it.  (Using
single quotes is consistent with quote-region and quote-line.)  I saw the
discussion about which values of NUMERIC should cause quoting (36193) but
I think it is orthogonal.

As Oliver said — we can make further changes later if needed.

Cheers,

Daniel

P.S.  Someone pointed out on IRC that 'typeset -p IFS' prints a literal
newline character.  Perhaps it should use $''-quoting to escape the
newline.



Messages sorted by: Reverse Date, Date, Thread, Author