Skip to content

Tbkeys lite extention

**Exposes the keystroke bindings in thunderbird , so you can modify them **

https://addons.thunderbird.net/en-US/thunderbird/addon/tbkeys-lite/
http://kb.mozillazine.org/Keyconfig_extension:_Thunderbird#Custom_code
install via search ” tbkeys-lite” in TB add-ons manager

This is the lite version <> tbkeys version : https://github.com/wshanks/tbkeys
diff with the full version : the ability to execute arbitrary javascript is removed.
And he site with the main version has more detailed help.

config

≣ > tools > add-ons > tbkeys-lite > config button > tab “preferences”

default bindings config

  • main key bindings (default) :
    ~~”j”: “cmd:cmd_nextMsg”,
    “k”: “cmd:cmd_previousMsg”,~~
    “o”: “cmd:cmd_openMessage”,
    “f”: “cmd:cmd_forward”,
    “#”: “cmd:cmd_delete”,
    “r”: “cmd:cmd_reply”,
    “a”: “cmd:cmd_replyall”,
    “x”: “cmd:cmd_archive”,
    “c”: “func:MsgNewMessage”,
    “u”: “tbkeys:closeMessageAndRefresh”
  • compound key bindings
    – none

op bovengemelde github site is er de pagina : https://github.com/wshanks/tbkeys#command-syntax
met de uitleg hoe binding te configureren
meest nuttige is “cmd:” + “tb command_name”
thunderbird commando’s kunnen gevonden worden op :
https://hg.mozilla.org/comm-central/file/tip/mail/base/content/mainCommandSet.inc.xhtml

enkele nuttige
< command id=”cmd_getNewMessages” oncommand=”goDoCommand(‘cmd_getNewMessages’)” disabled=”true”/>
< command id=”cmd_emptyTrash” oncommand=”goDoCommand(‘cmd_emptyTrash’)” disabled=”true”/>
< command id=”cmd_viewAllMsgs” oncommand=”goDoCommand(‘cmd_viewAllMsgs’)” disabled=”true”/>
< command id=”cmd_viewUnreadMsgs” oncommand=”goDoCommand(‘cmd_viewUnreadMsgs’)” disabled=”true”/>

< command id=”cmd_goFolder” oncommand=”gFolderTreeView.selectFolder(event.target._folder, true);” disabled=”true”/>

alternative approach to tbkeys-lite

scroll in the preview window, using:
“j”: “window.document.getElementById(‘messagepane’).contentDocument.documentElement.getElementsByTagName(‘body’)[0].scrollBy(0, 10)”,
“k”: “window.document.getElementById(‘messagepane’).contentDocument.documentElement.getElementsByTagName(‘body’)[0].scrollBy(0, -10)”

other alternative approaches to tbkeys-lite

? python ?
? autokey ?