Benvenuto in Thunderbird Add-ons.
Aggiungi nuove funzionalità e stili per rendere Thunderbird veramente tuo.
ChiudiRecensione di mrmr per tbkeys-lite
Assegnate 4 su 5 stelle
Actually, looking at implementation.js, turns out it is pretty simple change to allow existing syntax with multiple commands, and not needing custom functions:
diff --git a/addon/implementation.js b/addon/implementation.js
index 5a740f2..f44bf40 100644
--- a/addon/implementation.js
+++ b/addon/implementation.js
@@ -143,7 +143,9 @@ var TBKeys = {
let cmdBody = command.slice(cmdType.length + 1)
switch (cmdType) {
case "cmd":
- window.goDoCommand(cmdBody)
+ for (let cmd of cmdBody.split(" ")) {
+ window.goDoCommand(cmd)
+ }
break
case "func":
window[cmdBody]()
Then, one can just do:
"n": "cmd:cmd_collapseAllThreads cmd_nextMsg",
-mr
Per creare una tua raccolta devi avere un account per Mozilla Add-ons.