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

9 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#).

5 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

1 Like

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

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