Adding external link on text no longer focuses on the link

I would often add links using the “add external link” feature. With the latest update v1.7.0, I am noticing that there are more steps involved in adding a link to existing text. Before it would take two seconds to select the text, press the button, and then paste the url. Now it doesn’t automatically move the cursor to the link section, so I have to either press the right arrow key three times or use my mouse to focus on the link section myself. Ideally when a user wants to add an external link to some existing text then all they will input afterwards would be the url. Adding this extra step to manually change focus diminishes the overall QoL of adding links quickly and with as little friction as possible.

Steps to reproduce

Copy some existing text in the vault and use the “add external link” feature. Notice that the cursor is highlighting all of the text instead of the place where the link should go. Thus, immediately pasting the copied url will overwrite all of the text that one would’ve wanted to link.

Did you follow the troubleshooting guide? [Y/N] Y

Expected result

After pressing “add external link” with a block of text selected, the cursor and focus should be on the link section (i.e. [text](<cursor>)).

Actual result

The text section is focused and will be overwritten.

Environment

SYSTEM INFO:
Obsidian version: v1.7.0
Installer version: v1.6.5
Operating system: Windows 11 Pro 10.0.22631
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

4 Likes

Ok thanks

I’m seeing the same behaviour. Wrong focus after the command “Insert markdown link”.

I’ll highlight
text

Execute command “Insert markdown link” and it is transformed into
[text]()

but the “text” is selected and cursor placed within the brackets. Expected behaviour is for the cursor to be placed within the parenthesis.

This bug occurred with vesion 1.7.0

2 Likes

will be fixed 1.7.1

4 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.