I don’t know if this is a bug, an unintended consequence, a deliberate design decision, etc. But I discovered something today while taking notes on one of my recent uses of GitHub - ggml-org/llama.cpp: LLM inference in C/C++ · GitHub for local AI hosting. To produce the issue:
- Create a new markdown document and name it ‘Llama’.
- Enter some text in the body of the markdown document.
- Now edit the title of the document and change it to ‘Llama.cpp’.
I couldn’t figure out why all my usual Markdown formatting wasn’t working anymore and weird things were happening with the usual split-pane layout I prefer (both of them disappearing and showing me ugly fixed-font text instead). Until I noticed that the document type had changed from markdown to C++ source! I really didn’t expect that. But I’ve since learned that naming a document so that it looks like a file name/extension pair can throw DT for a loop. I had no idea it would even be an issue because I already had a markdown document named “Llama.cpp and Ollama” that wasn’t re-typed. I just happened to mis-name the next note I was creating and then had it turn into a C++ source file when I renamed it.
As I think about it, I see why it happens. I’m sure under the hood DEVONthink is just renaming the underlying source document in the file system when I go changing the document “title”, which is no doubt why I can’t use plenty of file-system-ish characters in my titles either. So I’m not even sure this is a bug or a… well, I already said that. But to state my remaining question: is there any way for me to name a markdown document something like ‘Llama.cpp’ and not have DT re-type it as C++ source code instead of the markdown I want it to be? And maybe I should also tender a suggestion: that DT should probably prompt the user before letting him accidentally change the document type in this unanticipated manner? Thanks in advance.