Zsh Mailing List Archive
Messages sorted by:
Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)
- X-seq: zsh-workers 38447
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)
- Date: Mon, 9 May 2016 08:41:43 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=iidYrcp2kKr2GoiS+D8+Ns8tnD2nhdKGIzsMiClb/iY=; b=q1lAVYrY2HGhE7sUTgDh1z5UQEs2EMeat0vKS9O6hj/mm55xv9HAHzKAMFOVZai/Mh uNsPYN06fGOE3BsZbWdH4JK6L9NOe4bhzZF6tpgwYKN8e0OmDz2djbVdUBO7sCqcyEAQ Vfkqh4zy8QDvU+a1u4/4mpdVBFXk+WM1fcrqhW9d9vmPzE6pDm4bGsjSXKKBnXp7+r3o PcnS57vR7MOh4EaCkXySfy3a1rPjquseWV/PHJ5AtfsDSydbze2F0rqRKc21qwhRYbIj q+NUk8B+EDUpmN8UL8LSZVGWKC0VW7ZmiQA8yHREshRKHAvhO/KZnjtUM7zdVqtOmO5B mFOw==
- In-reply-to: <20160509141306.GA18211@cventin.lip.ens-lyon.fr>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160506205309.GY5029@sym.noone.org> <160508115026.ZM10022@torch.brasslantern.com> <20160509141306.GA18211@cventin.lip.ens-lyon.fr>
On May 9, 4:13pm, Vincent Lefevre wrote:
} Subject: Re: bracket-paste-magic adds backslashes inside a quoted string i
} On 2016-05-08 11:50:26 -0700, Bart Schaefer wrote:
} > You want
} > zstyle :bracketed-paste-magic paste-init backward-extend-paste
} > so that the quote marks that are already on the line are treated as
} > part of the pasted text.
} Shouldn't this be the default behavior?
We had quite a bit of discussion on related topics when bracketed-paste
was added. The general idea is that a paste is treated as a unit, and
the default behavior of bracketed-paste-magic is to restrict its action
to remain "inside" that unit.
backward-extend-paste is appropriate when bracketed-paste-magic combines
with url-quote-magic, but not necessarily so in other cases. paste-init
(and paste-finish) can be used for this kind of thing generically; the
backward-extend action is included by default, but has to be turned on.
Messages sorted by: