Skip to content

Select next occurrence (and Select all occurrences) have erratic behavior on hyperlinks / WikiLinks #87

Description

@hsandt

Take the following md:

### Repro

Game
Game2

[[Game]]
[[Game/A|A]]
[[Game/B]] and [[Game/C]]
[D](Game/D) and [E](Game/E)

![[Game/image.webp]]

![image](Game/image2.webp)

select any occurrence of "Game" and Select next occurrence (Ctrl+D, remember to unassign Delete line if trying from Sandbox vault) => it will select unexpected text, taking [[ and ]], then stop (as apparently trying to find [[ from there. Or stop at the beginning of the line. And generally not find text inside image tags unless already in some image tag.

Demo videos (ignore the backtick after [[Game]], I added it accidentally)

2025-03-22.Obsidian.Editor.Code.Shortcuts.Select.next.occurrence.erratic.on.links.1.webm
2025-03-22.Obsidian.Editor.Code.Shortcuts.Select.next.occurrence.erratic.on.links.2.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions