From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30643 invoked from network); 17 Nov 2022 18:32:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2022 18:32:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=q/YbsFRrI9UnSJBZk0c0Ytozf5Zv0WEanO69i3JkE1M=; b=qP5hat54Y3Op2XcDMTlJLdXLc9 Q3bf3TTPIaPsyI2OaThu/dj61q2H5ZWqMHEg9vhQSLAwDz0BbhAc0V/lMKO2wWB3sDkNEGvTkhqjG 4kjptS7iD9+7YJ5eOlc7i3qLVBdu6BiRXU9RHK6bzqJQsVKgBcoL4Krbj6+0eAkQJ/q8/VdZtUI3Z E7G4oJJfHdURfhNQf80qUXX2DsMyJ/ZxvM69/RjDUpD0Y9sZAS6bxKYq73HgviHnjPU0t4E8sZJ9d aWkw+3x1A7QSXNTTUOVV7uSMvhRY6yRPRWXeglXJ6kZVYfpFddWSSdkNdjYil0rewCOSCBZ12sKP+ XKCRysCg==; Received: by zero.zsh.org with local id 1ovjh5-000OGq-Fw; Thu, 17 Nov 2022 18:32:59 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ovjgs-000Ntx-2W; Thu, 17 Nov 2022 18:32:46 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1ovjgq-00005W-IW; Thu, 17 Nov 2022 19:32:44 +0100 cc: Zsh workers In-reply-to: From: Oliver Kiddle References: <65921-1668126133.132087@aS6N.AE_X.6s2G> To: Bart Schaefer Subject: Re: PATCH: use escape sequence for system clipboard MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <340.1668709964.1@hydra> Date: Thu, 17 Nov 2022 19:32:44 +0100 Message-ID: <341-1668709964.567959@x4ZR.B_3-.8qnN> X-Seq: 50989 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 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