From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oMuqFlXQv2MPUwAAbAwnHQ (envelope-from ) for ; Thu, 12 Jan 2023 10:18:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qDq7FlXQv2PVKgEA9RJhRA (envelope-from ) for ; Thu, 12 Jan 2023 10:18:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2B913F353 for ; Thu, 12 Jan 2023 10:18:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFthT-0003NF-4J; Thu, 12 Jan 2023 04:16:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFthR-0003Mx-09 for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 04:16:41 -0500 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFthO-0003y0-Ge for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 04:16:40 -0500 Received: from smtpclient.apple ( [14.26.85.179]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 610a2aa9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 12 Jan 2023 09:16:26 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: copying text from links makes it with a starting [[ Date: Thu, 12 Jan 2023 17:15:48 +0800 Message-Id: <273F07DB-1621-4EA2-802B-7A485D6EF0EF@netyu.xyz> References: Cc: Ihor Radchenko , emacs-org list In-Reply-To: To: Luca Ferrari X-Mailer: iPhone Mail (20C65) Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673515093; a=rsa-sha256; cv=none; b=g6aZTpwUSeRYq50wO+lYKYrdgOe9xl9P9mT+Vr0xFIGobAmAZYFdzn4C2T4MIdYNj8nv3r 3OGSEFLDa4tJsjjGLFsVjU8FhvWAvL5LtyY82HOmPpAu9LB5ISe9uDAtyEDv+7pxrVltGE 3h16rPl7ar1eDHH5o76/oatZHXNinp/EXznC8ykqprNyusSDT10VJ9kfzqEzPAaVSiw0A0 If17lcZdWgGiX9pZ1mR3ejCPo3Lt2w4alrJ9jXJih6ldNeHJofLJB0PQYFvhACdV6MfclG qVjjAwEmMeQQqwAVrD0mgqgl12yC+S+++ZyOlMxvWwJxn4DxRov1okgnC8U1nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673515093; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=03xNkk7WAoc+0XeVFu47xm7QLzJMbACcygP1zzoAJaA=; b=ajsCGiESemoeseEcHusrlecfPMbaAuJWKzXXargFJtf+Yf59Fi1+1Ze3Cwf/5LiKfV1N1k sGGsfeXkffOBi76bewdc6/3IFOqY/KM4Vv5Cxb9sF9cD24zXYfetj+yRELRq+SFCavRi28 jBK+qoan1D/A7gF/whtNbwHR+0yEHi335AbFluSewwASspIapFAk4bkMhHKXOctbayS4GR 1eVwFiO4655NJGeQX/9h27UOMB6ybRh/BooQkHLY+ehXKVEoqrXE7Q5240BTVgoG1C4k2A mXZLBrBZje1pqziYLcEXWxL4p1EfOpGzfLTwZ3TsBuhy6xU59DmmHzp7QlNbxQ== X-Migadu-Queue-Id: F2B913F353 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Spam-Score: -3.70 X-Spam-Score: -3.70 X-TUID: KyyHR/7ckfyH > On Jan 12, 2023, at 15:45, Luca Ferrari wrote: >=20 > =EF=BB=BFOn Tue, Dec 27, 2022 at 2:26 PM Ihor Radchenko wrote: >>=20 >> Luca Ferrari writes: >> Could you please provide more details about what is happening? >> What exactly do you do to copy the link? >> See https://orgmode.org/manual/Feedback.html#Feedback >>=20 >=20 > Imagine I've this org fragment: >=20 > Link: [[https://foo.com]] >=20 > where the link is displayed without brackets, in org mode. > I place the point at the beginning of the first visibile character, > hence the 'h', and the C-space M-e M-w and then go to another > application and paste the content of the clipboard. > I've seen that sometimes the link is copied as text, so both beginning > and ending brackets are there, but with long links the ending brackets > are not there, but it could be they I remove them accidentally. > I would like to copy only the visible part, but I guess there's no > solution unless I do something manually or configure a web package to > open the link into another application. >=20 >=20 > Luca Hi Luca, If all you want to do is to copy the (visible) URI without its surrounding b= rackets, then maybe you can take a look at how C-c C-l is implemented regard= ing how it gets the URI, and from there figure out how you can put the URI i= nto the kill ring.=20 Otherwise if you want to copy portions of the URI without also copying the o= pening brackets, then I suppose there might have to be specialized commands f= or C-w and friends that handles opening brackets?=20 Best, RY=