An Espanso package named Joplin Shortcuts (or Jops) allows creating quick notes without the need to focus on Joplin window. It helps to streamline note-taking process and avoid disruption of your workflow.
Main features
:jop initiate the plugin: authorization of the plugin + setting up default notebook via external link
Type:jop anywhere (not only in text fields) and press Grant authorization in Joplin. Optionally you can provide external link of the notebook of choice where your quick notes will land.
Usage
Make sure Joplin and espanso are running
Type :mn to create your first quick note
Other considerations
Shortcut won't launch Joplin if it isn't running, hence you should start it beforehand
Due to the fact the shortcut written in bash, for now it's supported only on Linux and macOS but can be easily ported to WSL2 for Windows. If you want to port it to native Windows powershell and need help, drop me a line
Interesting, I didn't know Espanso existed. Its strong point is its cross-platform support.
On Windows, I use AutoHotkey for years to do this kind of stuff. But its odd language gets some time to be mastered (although for simple tasks like this, it isn't that hard).
Thanks for sharing.
I did try to initiate the package by typing :jop but after clicking "Submit" nothing happens in Joplin. It does not ask about authorization.
espanso log says:
08:59:59 [worker(22371)] [ERROR] shell command exited with code: exit status: 1 and error: zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
08:59:59 [worker(22371)] [WARN] extension 'shell' on var: 'parentsave' reported an error: command reported error: '`zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
`'
08:59:59 [worker(22371)] [ERROR] error during rendering: rendering error
Caused by:
command reported error: '`zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
`'
10:03:57 [worker(22371)] [ERROR] shell command exited with code: exit status: 1 and error: zsh:1: no matches found: joplin://x-callback-url/openFolder?id=removedforsecurityreasons
zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
10:03:57 [worker(22371)] [WARN] extension 'shell' on var: 'parentsave' reported an error: command reported error: '`zsh:1: no matches found: joplin://x-callback-url/openFolder?id=removedforsecurityreasons
zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
`'
10:03:57 [worker(22371)] [ERROR] error during rendering: rendering error
Caused by:
command reported error: '`zsh:1: no matches found: joplin://x-callback-url/openFolder?id=removedforsecurityreasons
zsh:1: no such file or directory: /Users/username/.config/Joplin/.parentid
Hey, in short, I've came across an upstream problem I couldn't solve (see Known Issues) which prompted me to slow down the development. Last time I used the package it worked as expected.