'#' in file names makes the file unlinkable (aka hashtag, pound, octothorpe)

Steps to reproduce

  1. Create a file name that includes a #. Eg “test # test”
  2. Create another file, and link to the first.
  3. Attempt to open the first file via the link.
  4. Observe how you cannot because the # is read as a header link.

Expected result

Either:
A) #s are banned in file names (just like ? / < etc). I prefer this option.
B) #s in file names allow the files to be linked to.

Actual result

#s in file names are not banned, and they do not allow the file to be linked

Environment

  • Operating system: Ubuntu 18.04
  • Obsidian version: 0.10.1

Additional information

I know this is a weird bug hehe. I stumbled upon it because I was trying to create notes on c#

this has already been reported. Please, search before posting.

A post was merged into an existing topic: Poor Handling of # character in the filepath

this has already been reported. Please, search before posting.

Thanks for finding that for me! I did search, but it’s hard to find posts related to # hehe

For example, it doesn’t show up for any of these searches:
https://forum.obsidian.md/search?q=hashtag%20%23bug-reports
https://forum.obsidian.md/search?q=pound%20sign%20%23bug-reports
https://forum.obsidian.md/search?q=octothorpe%20%23bug-reports
https://forum.obsidian.md/search?q=%23%20link%20%23bug-reports

I should have tried “# file” then it shows up!
https://forum.obsidian.md/search?q=%23%20file%20%23bug-reports

i will add those to the title of the thread

1 Like