Underscore not handled in tags

Steps to reproduce

when creating a tag for example #daily_notes the tag will be treated as #daily. Seems like everything after the underscore is ignored.

Expected result

Actual result

Environment

  • Operating system:
  • Obsidian version:
  • Using custom CSS:

Additional information

13 Likes

Look like ā€˜-ā€™ is the only special character supported by Obsidian.
I suggest to add support for underscore (#test_tag), blank space (#test tag#) and nesting the tags (#test/tag or #test/muti word#).

7 Likes

Iā€™ll pile on here. I canā€™t get Obsidian to create/link to notes with : in the title, like ā€œDaily review May 26, 2020 5:05pmā€. Itā€™s fine if this shouldnā€™t work, but Obsidian styles it as if it does. Perhaps an error should be thrown or something to avoid erroneous filenames.

@ryanjamurphy your is a different bug that will be fixed in 0.6.5.

I am gonna move this to feature request because the tagging system will be reworked.

2 Likes

Agree with this. My tags have underscores (e.g. book_note) but the full tag is not recognized in 0.6.4, just the first part. Please support underscore in tags.

Steps to reproduce

Enter a tag like #abc_123.

Expected result

Tag should appear in tag list as abc_123.

Characters usually allowed in programming language identifiers like _ and @ should at least also be allowed in tag names.
Or why not in general take as a tag name all characters following a # up until the first whitespace character? Then tags like #library/books/mystery would at least be valid syntactically, even though the nesting is not recognized yet.

Actual result

Tag appears as abc.

Environment

  • Operating system:
  • Obsidian version:
  • Using custom CSS:

Additional information

2 Likes

Good to hear that tagging will be reworked. Let me add a few things:

  • Sorting of tags alphabetically
  • Currently I have these 2 tags: #supplychain and #supplychainfinance. When I click to search #supplychain, the result includes #supplychainfinance
2 Likes

4 posts were split to a new topic: Ctrl/cmd+click on tags with underscores in edit mode returns substrings of the tag

Still no fix for this 2 years later?

underscore works in tags.

1 Like