Joplin (Gui and I think terminal) will use your system default for MD file extensions. So you’ll have to set the default applications for the markdown mime type.
the easier method however is to use the config command in Joplin terminal (which is what I assume you’re using)
Do you know which version of the terminal app you’re on? It’s possible this is a bug that has since been fixed. I’m kind of at a loss for what could be causing this that wouldn’t happen affect everyone.
So if you set the editor as nvim, you can open notes just fine? But when you switch to nvim-qt the filename changes and opens nothing?
I really don’t know what could be causing that. can you share an example of how the paths differ?
I don’t know if what I am saying is relevant or not, but editors which spawns off its process from the current terminal (ie, if you run the editor from a terminal emulator you will get the prompt back without using &) tend to have problems with the watch mode. For an instance if you use them for the git commit editor you will get wrong results.
Note that while the desktop app works in watch mode, the CLI app expects the editor to be modal (such as vim), and when the editor closes the app gets the note content back. So if you pick a non-modal editor, it won’t work.
Eventually the Cli app should be updated to use the watch technique too, but it’s never been done.