Drop of note from another app inserts link at cursor instead of at drop position

Steps to reproduce

  1. Position the cursor somewhere in the note, perhaps mid-sentence.
  2. Use the “Show in system explorer” command
  3. Drag that note (or another note in the same vault) to the note and drop it in a position other than where the cursor was (e.g. top, bottom, blank line) and drop it

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


Expected result

Link to the existing note inserted at the drop position

Actual result

Link is inserted at the last cursor position instead


Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Catalyst license: supporter
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

The issue only occurs when dropping an existing file from the same vault, via an external program. Dragging a file not from the vault drops in the correct location, as does dragging the file from within Obsidian.

I can reproduce this on MacOS too. (1.3.7, installer 1.3.5)

When dragging from Finder, the flashing caret seems to split. One keeps flashing where it was. And one shows up where you are dragging. The resulting drop goes to where the caret was.

Curiously, it only seems to happen when dragging from the vault itself. I tried doing a test file in an external folder, and it dropped the link where I had my cursor.

Screen recording in Sandbox Help Vault: