URL Scheme: Link to #Hashtags

We strongly recommend you to search the forum with possible keywords before making a new feature request. If your request is very similar to an existing one, consider liking it and/or making a comment rather than making a new one. Once you’ve searched and determined that this is a new request, delete this line.

Use case or problem

Sometimes I’d like a quick link to a #hashtag, but I don’t want that particular note to be included in the #hashtag.

For example:

  • I have #dailyNotes and I have #weeklyNotes
  • I would love to have a link to #weeklyNotes within my #dailyNote template so that I can quickly jump to my #weeklyNotes. But I do not want my #dailyNotes to be a part of the #weeklyNotes #hashtag.

Proposed solution

I think both of these could work nicely:

  1. Support for opening hashtags in URL Scheme:
    • something like: obsidian://open-hashtag?vault=some-vault-name&hashtag=some-hashtag
    • This would open a search with the term tag:#some-hashtag i.e. it would behave just like clicking a #hashtag link already works.
  2. Support for hashtags in [[wiki links]]
    • #myHashtag means this note is a note under #myHashtag
    • [[#myHashtag]] means this is merely a link to #myHashtag and this note is NOT a note under #myHashtag

Current workaround (optional)

  1. Create a new note with the same name as your hashtag (minus the # since it doesn’t seem like # can be in note names). Like: [[myHashtag]]
  2. Add that same hashtag to that note. Like #myHashtag
  3. Now whenever you want to “link” to a hashtag without adding that note as a member of that hashtag, all you need to do is link to [[myHashtag]].
  4. Then when you want to use the “link” just click[[myHashtag]] and your #myHashtag will be in that note.

Drawbacks:

  • this will clutter your graph
  • extra steps make the “link” less convenient.

I got you:
obsidian://search?vault=my%20vault&query=tag%3A%23someTag

Note the URL encoding of the tag:#someTag parameter/value. : is %3A, # = %23.

2 Likes

This is great! Thank you so much.

2 Likes