Home / GitHub Page

Windows + N creates a new note

Hi there - heavy OneNote user at work, I am sorely missing in Joplin the possibility to create an unfiled note just with a “Win+N” shortcut, whatever application I am using at the moment. It would be great should the windows version of Joplin have this feature!

P.S. A sincere thank you for this tool which I run in a self-hosted cloud across many devices. The world is better with it.

Sorry, it’s Ctrl+N.

But at one point (not now) we might change the shortcut system to allow people to choose their own shortcuts. Until then, you have to live with the fact that you have to press Ctrl instead of Win.

You read my post too quickly:

whatever application I am using at the moment

Joplin Ctrl+N exclusively works when the window focus is on Joplin. The point of my post is about having a shortcut that allows you to create a note on the spot, wherever the window focus is (e.g. create a note when using excel, or chrome, or…)

That and the minimalistic interface that OneNote puts on those new note screens, as well as the filing in a default folder chosen in the config section is the whole user experience I’m looking for.

Ah, you were talking about global shortcuts.

Well, this will be a problem, especially since Ctrl+N, Cmd+N, and Win+N, is used in almost every application I know. So how do you think this should work?
Also, I’m not sure how well global shortcuts work in Electron applications. AFAIK Laurent plans to overhaul the shortcut system anyway, so in that case maybe one could just mark a shortcut as global.

This seems more like a job for autohotkey than Joplin.
@milkywade joplin doesn’t support what you would need yet, but even if it does support that kind of operation, global shortcuts are probably better left to autohotkey (and Windows apps).

Thanks John. I discovered a new app!

I guess I will wait for Joplin to maybe include it one day.

Autohotkey looks nice and is maybe very powerful, but it has to be learnt and tinkered for what looks like hours and I’m not really sure it would allow to fully replicate the OneNote experience / feature so I’m like “I could also learn assembler and code the feature from scratch”.

naa… you don’t need Assembler for this…

just add this to your Autohotkey script and adjust the path for joplin:

;joplin 'new note'
#n::
IfWinExist Joplin
{
  WinActivate, Joplin
}
Else run c:\_office_\joplin\joplinportable.exe
WinWaitActive, Joplin
Send, ^n
return
2 Likes

Many thanks, works like a charm, if you have Joplin launched and have clicked on the desired notebook.

In OneNote, initiating windows+n does not just create a new note anywhere where the application was when you last used it, it actually goes into a specific notebook that you can indicate in your settings and there in that notebook it creates a new note. The user experience is one when all your “unfiled” notes (the ones you did not want to file before creating them as you were in a hurry) will always be available in the same notebook.

Can these steps be automated with AHK somehow ?

If Joplin was not active when you click the shortcut, then the only thing that happens is that Joplin launches but a new note is not created. Also, Joplin takes a noticeable time to launch all the while you’re just waiting. However, these issues can be solved same as with onenote, by automatically launching Joplin at boot.

AHK allows you to create GUI so you could display a text area, type your note, then use the clipper API to have it saved into the notebook of your choice. The disadvantage is that you won’t have a Markdown editor but if it’s for a quick simple note that would work.

looks a bit convoluted if you ask me :slight_smile:

Thanks for the feedback anyway. If anything, I see myself using the AHK script to create a new joplin note, even though not the perfect solution, so thanks for all the tips.

Yes kind of, but once you’re familiar with AHK it’s very good to create all kind of custom workflows.

1 Like