External editor issues

Operating system

macOS

Joplin version

3.2.3

Desktop version info

Joplin for Desktop

Copyright © 2016-2024 Laurent Cozic
Joplin 3.2.3 (prod, darwin)

Client ID: 4bb9eabc3b1042c893b0dfcd11781134
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: 1993d30

Backup: 1.4.2
Conflict Resolution: 1.2.3

Sync target

File system

Editor

Rich Text Editor

What issue do you have?

I am trying to get consistent results when opening a text note from within the Rich Editor in an external editor (in my case Drafts, a very convenient Appstore app). Not a problem to get Joplin to start the Drafts app with the correct general options dialog field / path, but every time I try, Drafts opens and reports "import failed".

Here are the different "path" inputs I have used so far:
/Applications/Drafts.app/Contents/MacOS/Drafts
/Applications/Drafts.app/
open -a ~/Applications/Drafts.app/Contents/MacOS/Drafts

Could anybody give me advice what's going wrong ?
Existing threads on similar problems all seem relatively old and address different problems.
Thanks

Anyone using Joplin on a Mac, and using an external editor ?

I mainly use VSCode and haven't encountered any issues. After checking, I found that Drafts seems to not support opening markdown files via the command line, for example.

/Applications/Drafts.app/Contents/MacOS/Drafts ./test.md

VSCode supports this feature, for example

code ./test.md
# or
/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron ./test.md
2 Likes

Hi, I use Typora and have no difficulty.
Here is the path I use :

/Applications/Typora.app

Bruno

Thanks @rxliuli
Would anybody know whether there is a way to add a parameter to the command line (in Joplin) which sorts it out and 'helps' Drafts to figure it out ?