Closed quinncomendant closed 2 years ago
Are there other community plugins that manage to do this? Because what's happening is that Omnisearch calls the openLinkText()
function, but Obsidian somehow fails to open the note thus creates a new one.
Are there other community plugins that manage to do this?
I'm not aware of any. Obsidian's built-in Quick switcher works fine, but as a core plugin it might use private APIs to open the note.
Obsidian bug:
Unlikely to be fixed in the short term. It looks like Obsidian handles these files with minimal issues, but the same can't be said for the public API.
Problem description:
Omnisearch is unable to open notes which contain a
#
character in the filename. Instead, a new note is created. Obsidian's built-in Quick switcher is able to open files with # in filename successfully.I can recreate the problem like this:
Crazy #hashtag time!
Crazy
and this note is the first matchreturn
to open this noteCrazy
Here's a screencast showing 1) Omnisearch creating a new note instead of opening the note
Crazy #hashtag time!
, and 2) Quick switcher opening this note successfully.I expect Omnisearch to open the note
Crazy #hashtag time!
, not to create a new note namedCrazy
. A new note should only be created when typingShift-return
.I know Obisidian recommends not using
#
character inside note titles, but I have imported many notes from other sources and some contains#
. Although it's a rare edge case, it's probably easy to fix?Your environment: