Still having this problem with Joplin 3.3.6
Start your search query with a forward slash, in order for it to consider special characters in the search term. If you need to include spaces in the search as well as special characters, then include double quotes around the search criteria, but after the forward slash, eg:
/"foo_bar and hello_world"
Thanks a lot for the tip.
I did some tests.
- I never have highlight like in a classical search
- If I search for "ù§" it works with "\ù§" (backward slash) and not with "/ù§" (forward slash)
In fact it works perfectly with no slash at all !!!
- If I search |- it seems to work with forward slash like you said
So I have half of my solution... I can find "|-" but with no highlight.
And with special caracter I have to try various syntax...
Anyway thank you again for this workaround : it's a very good thing yet for me.
Hope the devs will find a more intuitive and unique solution...
The relevant documentation is here (See "Switch to basic search"):
\ will be treated as a special character itself and will not be matched directly in terms of identifying notes which match, but within each note it will only highlight matches where the special characters in the search query do actually match in the note exactly.
You might also notice that if you search within a note (ctrl + f within the note), it will match and highlight exactly what you type, without needing to use any special syntax for special characters.
Regarding searching for /ù§, it seems that the § character does not match when adding a / in front of it. Searching the ù character separately is ok, and would actually match if you searched for it simply with u instead. I'm not sure what is the problem with searching the § character, but I guess it's not something you use in your day to day. In any case, search queries including common special characters should work fine with the forward slash