Add option to disable internal link autocompletion suggesting non-existent file

Use case or problem

This is a reboot of : Internal link autocomplete suggesting non-existent file which was locked without a solution.

When typing [[PageName...]], and there are some broken links starting with the same letters or with similar words, the autocompletion system will suggest those broken links. Sometimes it’s not obvious they are broken so I will select them, before realizing they did not exist (generally seeing they are greyed out, or when clicking on them and it opens a new empty page).

Example typing “Fan crea”

What is this weird name with underscores and no closing bracket?

It actually came from a broken link during Zim to Obsidian conversion. Okay, it’s good to warn me about this but I will fix it later, right now I just want to pick the existing note.

Sometimes, as in the screenshot above, you can also see the very name you’re typing as the first suggestion. I’m not sure if it’s a bug as the file is scanning itself, or intended as a way to confirm what you typed. It’s less of an issue as it’s obvious that this is the name you’re currently typing and not an actual file, though (it requires an extra down key to select first actual autocompletion suggestion, but it only appears in specific situations like delete some characters at the end, couldn’t repro 100%).

Proposed solution

Add an option to enable/disable suggesting non-existing files, similarly to Quick Switcher’s “Show existing only” option.

Alternatively, if existing notes could be prioritized (put at the top) and non-existing notes put at the bottom and with a small icon representing “non-existing, create?”, it would also be fine.

Current workaround (optional)

a. Be careful when autocompleting…
b. Go to existing page first, copy file path, go back to first page and paste path into double square brackets

Related feature requests (optional)

As mentioned above, revival of Internal link autocomplete suggesting non-existent file

This issue is also related to How to disable automatic note creation for links to non-existing notes? (also locked with no solution) as an option disable non-existent note creation would avoid an extra step to delete a file accidentally created this way - but in my case I just want to autocomplete with the correct filename to start with.

1 Like