Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: use escape sequence for system clipboard
- X-seq: zsh-workers 50989
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: use escape sequence for system clipboard
- Date: Thu, 17 Nov 2022 19:32:44 +0100
- Archived-at: <https://zsh.org/workers/50989>
- In-reply-to: <CAH+w=7Yq=0CJmq2L8NcqShBHtQT1U2VgEGyrOYfRb7LmMo+tUw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <65921-1668126133.132087@aS6N.AE_X.6s2G> <CAH+w=7Yq=0CJmq2L8NcqShBHtQT1U2VgEGyrOYfRb7LmMo+tUw@mail.gmail.com>
On 10 Nov, Bart Schaefer wrote:
> Something that pushes the appropriate values into CUTBUFFER and/or killring ?
The escape sequence is for setting the system clipboard, not for reading
it, so I'd imagine it'd be more useful to extract values from
CUTBUFFER/killring than insert into them.
Checking emacs documentation, I find: "Under X, whenever the region is
active (see The Mark and the Region), the text in the region is saved in
the primary selection."
I can see this being useful but generating the escape sequence for every
region change may not be a good idea. I'll leave that to emacs mode
users to decide. It can be implemented from zle-line-pre-redraw using
the vi- widgets my patch adds.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author