obsidian-note-autocreation icon indicating copy to clipboard operation
obsidian-note-autocreation copied to clipboard

Web links shown as note suggestions

Open SimonTC opened this issue 3 years ago • 4 comments

Currently web links are included in the suggestions given by the plugin, but the plugin should only give suggestions for notes in the vault.

Originally reported by @brimwats in https://github.com/SimonTC/obsidian-note-autocreation/issues/3#issuecomment-1145357060

SimonTC avatar Jun 03 '22 05:06 SimonTC

another weird thing: it is offering /_Index of files from zootlekeeper files deleted forever ago. these files do not exist

Screenshot_20220603-005335_Obsidian

brimwats avatar Jun 03 '22 07:06 brimwats

Do you have notes somewhere that link to those deleted files? The suggestions contain both existing files and deleted files. I can add a toggle to the settings to only include existing files in the suggestions

SimonTC avatar Jun 03 '22 08:06 SimonTC

Do you have notes somewhere that link to those deleted files?

Interesting question! Turns out that I did, yes.

The suggestions contain both existing files and deleted files. I can add a toggle to the settings to only include existing files in the suggestions

A toggle for that would be wonderful!

brimwats avatar Jun 03 '22 13:06 brimwats

@brimwats I tried to reproduce your issue with weblinks showing up but could not reproduce it.

Is it possible that /kb/validity is a folder or a link to a non-existing note somewhere? From my testing, it looks like Obsidian treats any markdown-style link as an internal link as long as there is no colon in the link. Note Auto Creator only collects suggestions for internal links, not external links, since it relies on Obsidian's definition of an internal link.

Here are some examples of what Obsidian treats as internal and external links:

  • [a](www.test.com) - Internal link to the note www.test.com
  • [b](https://google.com) - External link to the webpage https://google.com
  • [c](:) - external link to app://obsidian.md/:

SimonTC avatar Jun 14 '22 18:06 SimonTC