Custom URI protocol
Notesium does not support handling the custom URI protocol notesium://
itself directly, as this is very dependent on user preference. It is up
to the user to write their own script.
Example integration
An example Linux integration can been found in contrib/xdg-urxvt-nvim.sh, which supports opening the notes listing as well as opening a note for editing - in a new URxvt terminal window and Neovim instance.
xdg-open notesium:///home/user/notes
xdg-open notesium:///home/user/notes/625d563f.md
For Vim users, opening the listing is useful when integrated with a launcher or desktop keybinding. Opening a note for editing is useful, for example, when using the embedded web interface or standalone web/graph.
Handler registration
To register the x-scheme-handler with a Linux desktop environment,
create the file $HOME/.local/share/applications/notesium.desktop with
contents similar to the following (don’t forget to update the Exec path):
[Desktop Entry]
Name=Notesium
Exec=/home/github/alonswartz/notesium/contrib/xdg-urxvt-nvim.sh %u
MimeType=x-scheme-handler/notesium;
Type=Application
Terminal=false
NoDisplay=true