Homepage    |    GitHub    |    API    |    FAQ

Menu items, Shortcuts, Toolbar icons

Menu items, Shortcuts, Toolbar icons

This plugin creates menu items (in Edit), shortcuts (defaults can be changed), and toolbar icons for the following actions:

  • mark
  • strikethrough
  • underline
  • superscript
  • subscript

Default Shortcuts and Command Names

Action Default Shortcut command
mark CmdOrCtrl+Shift+Y textMark
strikethrough CmdOrCtrl+Shift+U textStrikethrough
underline CmdOrCtrl+U textUnderline
superscript textSuperscript
subscript textSubscript

The shortcuts can be changed in the shortcut editor (Settings > Keyboard Shortcuts) or in the keymap-desktop.json file.

CodeMirror Commands

This plugin also makes additional CodeMirror functionality available.

Default Shortcuts and Command Names

Action Default Shortcut command
joinLines CmdOrCtrl+J editor.joinLines
toggleOverwrite CmdOrCtrl+O editor.toggleOverwrite

The shortcuts can be changed in the shortcut editor (Settings > Keyboard Shortcuts) or in the keymap-desktop.json file.

Settings

Please note: All settings require a restart of Joplin.

Only activate, if enabled in Markdown Plugin settings: Only activate menu items, shortcuts, and toolbar icons for markdown plugins which are enabled in Joplin's settings.

Enable "join lines" in editor: The markdown editor (CodeMirror) provides a function to join lines. This option enables it.

Enable "toggle overwrite mode" in editor: The markdown editor (CodeMirror) provides a function to toggle overwrite mode. This option enables it.

Under Show Advanced Settings it is possible to remove toolbar icons for individual actions.

Misc

8 Likes

What a coincidence I too just finished coding my plugin for strikethrough toolbar icon :sweat_smile:
though yours is much better and feature rich ; I am still sharing link to my repository

1 Like

Will it be useful if we add option to generate custom toolbar buttons ?
e.g shortcut for underlining text issue#4940
I would like to work on adding pull request implementing this feature.

1 Like

Already did that 3 hours ago.

But I haven't committed and pushed it yet. Also, please note that this plugin was rather a quick hack. There are a bunch of things on the todo list that I want to finish up before this plugin will be version 1.0.0.
One of the major things is refactoring. As you can see most of the code is duplicated for mark and strikethrough, which is a very bad coding style.

I only made it available, because a few people on this forum wanted this functionality.

1 Like

I can't believe I missed this post. Thanks for this plugin !
I use striketrough and mark text dozens of times a day, and now it will be much much less tedious. Time saver !
(Sometimes I was switching to the Rich Text Editor, but some formating were lost when switching back)

1 Like

Maybe CmdOrCtrl+Shift+X would be a better default for strikethrough. Both Google Docs and Slack use that.

May I also suggest CmdOrCtrl+Shift+H, as "Mark" is basically called "Highlight" in other apps and that's the shortcut used in Evernote?

I'm not so keen on changing the defaults. These combinations or some variation of them are usually associated with something else:

H - hide app, window
X - close, exit, cut

But that's why you can change them to your liking.

FYI: I picked them for a reason: Cmd+Shift+Y wasn't used yet, so it made sense at that time. And U for strikethrUUUUUUUU. Also Cmd+U is used for underline, thus if you use shift, you basically lift the line to the middle.

This plugin is fantastic, I needed this.

Would you consider adding support for quotes? I feel like this is the most cumbersome to do by hand, adding > to the beginning of every line in a quote with several paragraphs.

2 Likes

This sounds like a good idea. I can look into it, when I have a bit more time.

2 Likes

How have I overlooked this plugin for this long? :smiley:
Thanks!

Also seconding the > quote feature request; adding quotes multiple paragraphs long is my most frequent reason for launching my external editor (Typora).

1 Like