hadynz / obsidian-sidekick

A companion to identify hidden connections that match your tags and pages
134 stars 9 forks source link

Setting for notes to ignore #3

Open zachdaniel opened 2 years ago

zachdaniel commented 2 years ago

Hello!

This plugin is awesome! One thing that could be really useful would be the ability to exclude certain notes or folders from suggestions via settings. For example, I have a note for myself in my CRM that has an alias for Me and Myself (which is kinda silly, just did it for tinkering), but now any word that contains me has that part highlighted 😆 For now I'll just remove that alias, but depending on the subject matter (like chemistry) you might end up with every letter in the alphabet lit up 😆

hadynz commented 2 years ago

That's a really good call. Can see how that would be quite beneficial.

Would adding the following exclusion types achieve what you are trying to do:

zachdaniel commented 2 years ago

Those are both useful, and I can see myself using both. However, the current one that matters to me is excluding a list of notes specifically, (e.g in the case that some note often suggests being linked). In my example, I'd like to be able to tell it to ignore the file called Me.

For specific files, it could also be done as yaml frontmatter, e.g

tags: ...
aliases: ....
sidekick: false
chrisgrieser commented 2 years ago

I agree, I also love the idea of the plugin, but a lot of the highlights are just unnecessary. ignoring would make the plugin much more valuable.

hadynz commented 2 years ago

I agree, I also love the idea of the plugin, but a lot of the highlights are just unnecessary. ignoring would make the plugin much more valuable.

Are you able to share some examples of what some of those unnecessary highlights look like?

This will help me as I am working on this feature.

chrisgrieser commented 2 years ago

highlighting everything that has a "pr", because I have a tag #pr (for public relations), for example.

Also, it have notes on some generic things like [[Dataview]] and it then highlights the word every time I write it, even though it doesn't need to have a link every time.

hadynz commented 2 years ago

The issue of partial highlighting (that you get with #pr) will be resolved as part of https://github.com/hadynz/obsidian-sidekick/issues/4.

Also, it have notes on some generic things like [[Dataview]] and it then highlights the word every time I write it, even though it doesn't need to have a link every time.

What would you ideally expect from the plugin when dealing with very generic keywords in your notes and tags (like Dataview)?

chrisgrieser commented 2 years ago

I think simply having options to ignore them would suffice. Like sidekick: ignore in the yaml of [[Dataview]], or a plugin setting to save ignore a folder or sth.

HEmile commented 2 years ago

I created a setting in the pull request to allow disabling certain keywords (regardless of where it comes from). You can install it from here until it's pulled upstream. https://github.com/HEmile/obsidian-sidekick/releases/tag/1.1.0