emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Alexandros Prekates <aprekates@posteo.net>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: link can not be created in a line with another link.
Date: Wed, 1 May 2024 17:59:11 +0700	[thread overview]
Message-ID: <d9add32d-1e3b-4f68-a8fd-707b62baca49@gmail.com> (raw)
In-Reply-To: <20240429154540.3917dd8c@enoush2o>

On 29/04/2024 19:45, Alexandros Prekates wrote:
> 
> The same behavior happens with emacs -Q.
> 
> bla [[foo]]
> 
> If i add :
> [[boo]] bla [[foo]]
> org will create the two links.
> 
> But if i add:
> [[boo][  bla [[foo]]
> with the intention to type: [[boo][description]]  bla [[foo]]
> then what i will get is: a link to boo with description : bla [[foo

This case you can keep calm and continue typing "description]]".

I have a more weird example. Consider you are going to get

- [[#foo]] and [[#bar]]

starting from

- <point>[[#bar]]

There is no problem till

- [[#foo<point>[[#bar]]

However in response to "]" point is moved after "["

- [[#foo][<point>[#bar]]

that is displayed as

- <point>[#bar

I do not see other ways than undo, SPC, and moving back. It would be 
great to keep point between brackets "]<point>[" this case. I have no 
idea if it is feasible to postpone hiding link target when such pattern 
is typed.

I have descriptive links enabled despite most of links in my notes are 
like [[#CUSTOM_ID]]. There are still some links with descriptions.



  parent reply	other threads:[~2024-05-01 11:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-28  6:33 link can not be created in a line with another link Alexandros Prekates
2024-04-28 12:40 ` Ihor Radchenko
2024-04-29 12:45   ` Alexandros Prekates
2024-04-29 13:19     ` Ihor Radchenko
2024-04-29 22:33       ` Alexandros Prekates
2024-05-01 20:08       ` Alexandros Prekates
2024-05-01 20:57         ` Ihor Radchenko
2024-05-01 10:59     ` Max Nikulin [this message]
2024-05-01 16:36       ` Alexandros Prekates
2024-05-02 11:15       ` Ihor Radchenko
2024-05-03 10:39         ` Max Nikulin
2024-05-03 13:32           ` Ihor Radchenko

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=d9add32d-1e3b-4f68-a8fd-707b62baca49@gmail.com \
    --to=manikulin@gmail.com \
    --cc=aprekates@posteo.net \
    --cc=emacs-orgmode@gnu.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.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).