macOS prevents opening text files with URLs if they lack a .txt extension
Macos won't let me open a text file with urls
I'm running Sequoia 15.7.9 on a 2019 mac pro.
A while back I started work on some fiction, during lockdown I ran a ttrpg set in that world and did a lot of worldbuilding. In the process, I wrote text files that included urls to things like the google docs shared by the folks in the game. Note, I wrote these files on an older mac, which was upgraded a couple of times to the one I have now.
Life got in the way, I dropped the project for a while, I'm going back to work. I went into my notes directory, selected all of the files, tried to open them in emacs. There were two files in particular, one named links, one named links-1. Macos not only refused to edit them, it refused to open emacs with any of the other files either.
Note, I can open them from terminal, but Macos being broken, opening a file in emacs from the terminal does not work well, and I haven't figured out how to open it.
How do I tell Macos that I'm a grown up, and I really do want to open this text file that I wrote myself, even if I put some urls into it?
Does it matter that it is in a Dropbox file?
I was able to open another file foo, and add a url. Once I did that it wouldn't let me exit with ^x^c but did let me hit the red button. Once I saved that I was able to open it in emacs, so I don't know if apple just doesn't like links to it's competitor google docs.
I eventually changed links to links.txt
No other change to the contents of the file, and macos let me open it.
This is pretty braindead, judging the behavior of a file on the suffix, rather than the content.
How do I fix my system so that I can open my own files, no matter what I name them?