Links to hidden files don't work

Steps to reproduce

  1. Write [link](.gitignore)
  2. Click the link.
  3. Instead of opening the file on my system, it creates .gitignore.md, but doesn’t show it, says “file already exists”, and doesn’t have any indication of anything happening at all.

Alternately, if you try [link](./.gitignore), it pops up an error “File names cannot end with a dot or a space.” which is nonsense.

If I use percent encoding [link](%2Egitignore), it also says the file already exists and refuses to open it. Wiki-style links also do not work, because Obsidian assumes that I have to be linking to a Markdown file when it doesn’t recognize the file extension in use.

Did you follow the troubleshooting guide? Y

Expected result

Open the file.

Actual result

Inconsistent errors, creation of inaccessible files (i.e. .gitignore.md which then Obsidian refuses to acknowledge its existence…)

Environment

No. This isn’t relevant.


Additional information

Why is “Detect all file extensions” ignoring all of my files that don’t have a name before the extension? Why does Obsidian create such files if you make a link to them, but never lets you open them?

My temporary workaround is to create a shell script that opens the default editor for .gitignore and link to that.

Linking is a core concept of how Obsidian works… it shouldn’t be inconsistent like this.

We do not support/ignore complitely hidden files.
See feature request here:

That is part of the problem, yes.

Even if you don’t fix that, isn’t it still an issue that Obsidian is creating dotfiles? If it’s supposed to ignore them entirely, why is it making them?