zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: use escape sequence for system clipboard
Date: Thu, 17 Nov 2022 19:32:44 +0100	[thread overview]
Message-ID: <341-1668709964.567959@x4ZR.B_3-.8qnN> (raw)
In-Reply-To: <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


      reply	other threads:[~2022-11-17 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11  0:22 Oliver Kiddle
2022-11-11  2:43 ` Bart Schaefer
2022-11-17 18:32   ` Oliver Kiddle [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=341-1668709964.567959@x4ZR.B_3-.8qnN \
    --to=opk@zsh.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).