emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Luca Ferrari <fluca1978@gmail.com>,
	emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: copying text from links makes it with a starting [[
Date: Tue, 27 Dec 2022 22:20:33 +0700	[thread overview]
Message-ID: <d7704bdb-7a91-77e9-1ce2-14f525132b38@gmail.com> (raw)
In-Reply-To: <CAKoxK+4scrx2nhD4XmX0gu-xxGWVnkXsw-+16BDVFDPnJOKvsg@mail.gmail.com>

On 27/12/2022 20:06, Luca Ferrari wrote:
> I'm not sure this is an org problem, rather a clipboard problem or
> what else, but when I select an org link in Emacs and I copy into my
> Firefox browser, the link has always a starting pair of square
> brackets (e.g. [[https://...).

Selecting link to copy it to an external application or even to a 
non-org buffer has another problem. Some links may contain square 
brackets. Org needs to escape them (and backslash character as well). To 
reliably copy a link, it is necessary to define a dedicated command what 
unescapes URL. Alternatively you may copy URL using C-c C-l 
(`org-insert-link') and abort the command after that.

Besides copy, another action is open URL (C-c C-o) and it should handle 
unescaping properly. Depending on your environment, you may need to 
configure the browse-url package to use the preferred browser.


      parent reply	other threads:[~2022-12-27 15:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27 13:06 copying text from links makes it with a starting [[ Luca Ferrari
2022-12-27 13:26 ` Ihor Radchenko
2023-01-12  7:42   ` Luca Ferrari
2023-01-12  8:32     ` tomas
2023-01-12  9:15     ` Ruijie Yu via General discussions about Org-mode.
2023-01-13  8:40     ` Ihor Radchenko
2023-01-14  0:06       ` Samuel Wales
2022-12-27 14:34 ` Esteban Ordóñez
2022-12-27 14:42   ` Esteban Ordóñez
2022-12-27 15:20 ` Max Nikulin [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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d7704bdb-7a91-77e9-1ce2-14f525132b38@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fluca1978@gmail.com \
    /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.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).