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

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



On Aug 13,  4:49pm, Oliver Kiddle wrote:
}
} I'd agree that it is less ugly but there was some rationale behind the
} choice of \-quoting. It is easier to remove unwanted characters.

It's easier to remove the unwanted characters if there isn't very much
text being pasted or if all the unwanted characters are at the end ...
but if there are a bunch of backslashes scattered throughout a large
paste it gets ugly.

} What I was hoping to get at with the vim-style `[ and `] marks was a way
} to retrospectively quote the pasted text. Doing things in that order
} seems more helpful and more flexible.

Yes, invoking quote-region after the paste allows you to first clean up
the tail end before adding the quotes, so you get the best of both.



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