Edit Mode: Link preview doesn't trigger when hovering first and pressing CMD after

Steps to reproduce

Write down a [[link]] to another note or attachment. Stay in edit mode.
Move the cursor over the [[link]]. Then press CMD (or CTRL).

Expected result

Show the preview of the linked document or attachment.

Actual result

Doesn’t show the preview of the linked document or attachment.

Environment

  • Operating system: macOS 10.15.5
  • Obsidian version: 0.7.6

Additional information

Pressing CMD (or CTRL) before hovering the link with the mouse shows the preview as expected :slight_smile:

1 Like

I don’t think this is a bug, the intended use is that you hold down Cmd/Ctrl before hovering it.

Imagine if you leave your cursor accidentally on a link, and every time you press Cmd/Ctrl for other actions (e.g. copy/paste or undo) the page preview would pop up – that would be pretty annoying right? We listen for mouse movement and then check for Cmd/Ctrl so that we know you’re hovering intentionally.

2 Likes

Good point, I hadn’t thought of that. Thanks for the explanation! :smiley: