Ctrl/cmd+click on tags with underscores in edit mode returns substrings of the tag

Steps to reproduce

Enter a tag with an under score #two_words

Expected result

I expect the tag to work like any other tag

Actual result

The first word is considered a part of the tag but the second is ignored.

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.6.7
  • Using custom CSS: No

Additional information

Maybe I’m wrong and there is a different convention to multi worded tags, and if so I’m sorry.

Thank you very much, and thanks for you work, I love the app.

2 Likes

This is still unresolved.
Ctrl + clicking on a tag in edit mode searches a weird substring of the tag, depending on which part of the word you click on (I have tags starting with _, but _ in between words is also buggy).
General search works, and the link pane and preview mode both paste the right search terms.

that’s weird, it works correctly for me, on 0.9.11 linux

edit: nevermind I was wrong. @NomarCub was right, in edit mode, ctrl-clicking on a tag with an underscor searches only a part of the tag.

Thanks for checking—I never thought to look. Indeed, it works fine for me, too:
Screen Shot 2020-11-17 at 2.43.14 PM

Ah. I see. Specifically cmd/ctrl+clicking underscore-based tags in Edit mode fails. The following screenshot is what’s produced when I do so on the some_new_ part of the tag:

Moving these last four posts to a bug report.

2 Likes

I found more oddities.
Auto-complete suggestions also don’t work with tags containing _.

The formatting in edit mode is weird, applying bold and italic randomly with more _s.

I feel like these are general problems with tags with underscores. Can we rename this thread? I understand seperating it from the thread with fixed things, but I’d rather not make separate reports for seemingly related things.