Hi @ijgnd
I can’t find the add-on on your GitHub so here is a diff of the modification to add the table shortcuts:
diff --git a/template_tiny5_body.html b/template_tiny5_body.html
index 4a0eed9..06bdbc5 100644
--- a/template_tiny5_body.html
+++ b/template_tiny5_body.html
@@ -133,7 +133,7 @@ setup: function(editor) {
editor.addShortcut("Ctrl+E", "Special character", function() {editor.execCommand("mceShowCharmap");});
editor.addShortcut("Alt+39", "Insert → (Alt+ArrowRight)", function () {editor.execCommand("mceInsertContent", 0, "→");});
editor.addShortcut("Shift+Alt+39", "Insert ⇒ (Shift+Alt+ArrowRight)", function () {editor.execCommand("mceInsertContent", 0, "⇒");});
- editor.addShortcut("Ctrl+Alt+39", "Insert ↔ (Ctrl+Alt+ArrowRight)", function () {editor.execCommand("mceInsertContent", 0, "↔");});
+ editor.addShortcut("Ctrl+Shift+39", "Insert ↔ (Ctrl+Shift+ArrowRight)", function () {editor.execCommand("mceInsertContent", 0, "↔");});
editor.addShortcut("Ctrl+Shift+Alt+39", "Insert ⇔ (Ctrl+Shift+Alt+ArrowRight)", function () {editor.execCommand("mceInsertContent", 0, "⇔");});
editor.addShortcut("Alt+37", "Insert ← (Alt+ArrowLeft)", function () {editor.execCommand("mceInsertContent", 0, "←");});
editor.addShortcut("Shift+Alt+37", "Insert ⇐ (Shift+Alt+ArrowLeft)", function () {editor.execCommand("mceInsertContent", 0, "⇐");});
@@ -148,6 +148,12 @@ setup: function(editor) {
editor.addShortcut("Ctrl+Alt+U", "Upper case (Ctrl+Alt+U)", function () {editor.execCommand("mceInsertRawHTML", 0, editor.selection.getContent({ format: "html" }).toUpperCase());});
editor.addShortcut("Ctrl+Alt+L", "Lower case (Ctrl+Alt+L)", function () {editor.execCommand("mceInsertRawHTML", 0, editor.selection.getContent({ format: "html" }).toLowerCase());});
+ /* Table shortcuts */
+ editor.addShortcut("Ctrl+Alt+32", "Insert table (Ctrl+Alt+Space)", function () {editor.execCommand("mceInsertTable", false, { rows: 1, columns: 1 })});
+ editor.addShortcut("Ctrl+Alt+37", "Insert column before (Ctrl+Alt+ArrowLeft)", function () {editor.execCommand("mceTableInsertColBefore")});
+ editor.addShortcut("Ctrl+Alt+38", "Insert row before (Ctrl+Alt+ArrowUp)", function () {editor.execCommand("mceTableInsertRowBefore")});
+ editor.addShortcut("Ctrl+Alt+39", "Insert column after (Ctrl+Alt+ArrowRight)", function () {editor.execCommand("mceTableInsertColAfter")});
+ editor.addShortcut("Ctrl+Alt+40", "Insert row after (Ctrl+Alt+ArrowDown)", function () {editor.execCommand("mceTableInsertRowAfter")});
/*
var myexQ;
Note that I changed the shortcut to insert the ↔ symbol because it conflicts with the shortcut @julian wanted for “Insert column after”. I think the table shortcuts will be used more often, so it’s worth giving them a bit more convenient shortcuts.
By the way, let me know if you have a Patreon/ko-fi/etc account. You’re providing great value to the Anki ecosystem with your add-ons.