Easier ==markings==

Hey
I'm wondering, is it possible to create a custom keyboard shortcut to make markings?
By markings i mean ==marking==
Maybe it's also possible to make a custom plugin to add a button among the rich-text buttons?
I'm using 1.7.11

Regards,
Christoffer

3 Likes

Yes, it is. I've been contemplating to write such a plugin, but I'm currently quite busy.

I hope I get to it in the next 2 weeks.

2 Likes

As a workaround, there was an Autohotkey script posted recently for strikethrough, it can be trivially adapted for markings.

1 Like

Yes, the AutoHotKey script works well. But I still wouldn't mind a native keyboard shortcut in Joplin for highlighting selected text. Will be happy to have it whenever.

3 Likes

Thank you for your replies :+1:
Since I use Linux, I can't use AutoHotKey or Keybreeze.
Instead, I used an application called xdotool together with xclip.
I have the script executed by zsh when I press Ctrl + Alt + M.
I'm making the keymap using Gnome Shell keyboard settings.

#!/bin/zsh

xdotool keyup "ctrl+alt+m"
xdotool type "==$(xclip -o)=="

As you can see, there is an issue with retyping certain emojis, and it looks kinda weird marking long chunks – but it works! Undo also works. As you can see, I'm also using the Rich Markdown plugin.

EDIT:
My solution is kinda slow and glitchy.
It seems that Joplin 1.8.1 will support both Highlighting and Strikethrough by clicking buttons in the Rich text editor. Release v1.8.1 · laurent22/joplin · GitHub

image

1 Like

For anyone who uses the markdown editor:

3 Likes