Keyconfig extension: Thunderbird: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
(Cleanup)
Line 1: Line 1:
:''These are example lines you can add to Thunderbird's [[prefs.js]] file to customize keyboard shortcuts. You need to install [[keyconfig extension]] first. A [[Keyconfig extension - Custom Keys for Firefox|similar page for Firefox]] is available.''
<!--NOTICE TO PEOPLE WHO ARE EDITING THIS ARTICLE
Please use "<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;"></div>" instead of "<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;"></div>" so that the page width isn't expanded to insane lengths. Not pretty, but maybe someone else can think of something better.-->
These are a series of preferences you can add to your prefs.js file in your profile folder (but NOT the [[user.js file]]; see the [[Keyconfig extension]] page for why) to add more functions that you can map to keyboard shortcuts using the [[Keyconfig extension]].


==Thunderbird General==
==Thunderbird General==
Line 5: Line 7:
  |'''Display Attachments Inline (Toggle)'''
  |'''Display Attachments Inline (Toggle)'''
  |-
  |-
  |''Menu:'' View > Display Attachments Inline
  |''Menu:'' View -> Display Attachments Inline
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Display Attachments Inline (Toggle)", "!][][][ToggleInlineAttachment(event.target);");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Display Attachments Inline (Toggle)", "!][][][ToggleInlineAttachment(event.target);");</div>
  |-
  |-
  |'''Rewrap'''
  |'''Rewrap'''
  |-
  |-
  |''Menu in Compose Window:'' Edit > Rewrap
  |''Menu in Compose Window:'' Edit -> Rewrap
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Rewrap", "!][][][goDoCommand('cmd_rewrap');");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Rewrap", "!][][][goDoCommand('cmd_rewrap');");</div>
  |-
  |-
  |'''Run Filters on Folder'''
  |'''Run Filters on Folder'''
  |-
  |-
  |''Menu:'' Tools > Run Filters on Folder
  |''Menu:'' Tools -> Run Filters on Folder
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Run Filters on Folder", "!][][][goDoCommand('cmd_applyFilters');");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Run Filters on Folder", "!][][][goDoCommand('cmd_applyFilters');");</div>
  |-
  |-
  |'''Run Junk Mail Controls On Folder'''
  |'''Run Junk Mail Controls On Folder'''
  |-
  |-
  |''Menu:'' Tools > Run Junk Mail Controls On Folder
  |''Menu:'' Tools -> Run Junk Mail Controls On Folder
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Run Junk Mail Controls On Folder", "!][][][goDoCommand('cmd_runJunkControls');");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Run Junk Mail Controls On Folder", "!][][][goDoCommand('cmd_runJunkControls');");</div>
  |-
  |-
  |'''Delete Mail Marked as Junk in Folder'''
  |'''Delete Mail Marked as Junk in Folder'''
  |-
  |-
  |''Menu:'' Tools > Delete Mail Marked as Junk in Folder
  |''Menu:'' Tools -> Delete Mail Marked as Junk in Folder
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Delete Mail Marked as Junk in Folder", "!][][][deleteJunkInFolder();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Delete Mail Marked as Junk in Folder", "!][][][deleteJunkInFolder();");</div>
  |-
  |-
  |'''Send Unsent Messages'''
  |'''Send Unsent Messages'''
  |-
  |-
  |''Menu:'' File > Send Unsent Messages
  |''Menu:'' File -> Send Unsent Messages
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Send Unsent Messages", "!][][][goDoCommand('cmd_sendUnsentMsgs');");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Send Unsent Messages", "!][][][goDoCommand('cmd_sendUnsentMsgs');");</div>
  |-
  |-
  |'''Mark Message Answered'''
  |'''Mark Message Answered'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Mark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,true,null);");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Mark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,true,null);");</div>
  |-
  |-
  |'''Unmark Message Answered'''
  |'''Unmark Message Answered'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Unmark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,false,null);"); </pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Unmark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,false,null);"); </div>
  |-
  |-
  |'''Focus Folder Pane'''
  |'''Focus Folder Pane'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Focus Folder Pane", "!][][][SetFocusFolderPane();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Focus Folder Pane", "!][][][SetFocusFolderPane();");</div>
  |-
  |-
  |'''Focus Thread Pane'''
  |'''Focus Thread Pane'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Focus Thread Pane", "!][][][SetFocusThreadPane();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Focus Thread Pane", "!][][][SetFocusThreadPane();");</div>
  |-
  |-
  |'''Focus Message Pane'''
  |'''Focus Message Pane'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Focus Message Pane", "!][][][SetFocusMessagePane();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Focus Message Pane", "!][][][SetFocusMessagePane();");</div>
  |-
  |-
  |'''View Message Body As Original HTML / Plain Text (Toggle)'''
  |'''View Message Body As Original HTML /Plain Text (Toggle)'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__View Original HTML / Plain Text (Toggle)", "!][][][if(pref.getBoolPref('mailnews.display.prefer_plaintext')) MsgBodyAllowHTML(); else MsgBodyAsPlaintext();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__View Original HTML /Plain Text (Toggle)", "!][][][if(pref.getBoolPref('mailnews.display.prefer_plaintext')) MsgBodyAllowHTML(); else MsgBodyAsPlaintext();");</div>
  |-
  |-
  |'''View > Message Body As > Original HTML / Simple HTML / Plain Text'''
  |'''View -> Message Body As -> Original HTML /Simple HTML /Plain Text'''
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__View Message Body As Original HTML", "!][][][MsgBodyAllowHTML();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__View Message Body As Original HTML", "!][][][MsgBodyAllowHTML();");</div>
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__View Message Body As Simple HTML", "!][][][MsgBodySanitized();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__View Message Body As Simple HTML", "!][][][MsgBodySanitized();");</div>
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__View Message Body As Plain Text", "!][][][MsgBodyAsPlaintext();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__View Message Body As Plain Text", "!][][][MsgBodyAsPlaintext();");</div>
  |}
  |}


Line 78: Line 80:
  |Toggle between All and Normal headers
  |Toggle between All and Normal headers
  |-
  |-
  |''Menu:'' View > Headers > All / Normal
  |''Menu:'' View -> Headers -> All /Normal
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Toggle Headers Button", "!][][][ToggleHeadersButton();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Toggle Headers Button", "!][][][ToggleHeadersButton();");</div>
  |}
  |}


Line 87: Line 89:
  |'''View Brief Headers (Toggle)'''
  |'''View Brief Headers (Toggle)'''
  |-
  |-
  |''Menu:'' View > Headers > Brief
  |''Menu:'' View -> Headers -> Brief
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Mnenhy - View Brief Headers (Toggle)", "!][][][goMnenhy.headers.ToggleHeaderViewBrief();");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Mnenhy: View Brief Headers (Toggle)", "!][][][goMnenhy.headers.ToggleHeaderViewBrief();");</div>
  |-
  |-
  |'''View No Headers'''
  |'''View No Headers'''
  |-
  |-
  |''Menu:'' View > Headers > None
  |''Menu:'' View -> Headers -> None
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Mnenhy - View No Headers", "!][][]["goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNoHeaders);");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Mnenhy: View No Headers", "!][][]["goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNoHeaders);");</div>
  |-
  |-
  |'''View Normal Headers'''
  |'''View Normal Headers'''
  |-
  |-
  |''Menu:'' View > Headers > Normal
  |''Menu:'' View -> Headers -> Normal
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Mnenhy - View Normal Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNormalHeaders);");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Mnenhy: View Normal Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNormalHeaders);");</div>
  |-
  |-
  |'''View All Headers'''
  |'''View All Headers'''
  |-
  |-
  |''Menu:'' View > Headers > All
  |''Menu:'' View -> Headers -> All
  |-
  |-
  |<pre>user_pref("keyconfig.main.xxx_key__Mnenhy - View All Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewAllHeaders);");</pre>
  |<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Mnenhy: View All Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewAllHeaders);");</div>
  |}
  |}

Revision as of 01:16, 10 February 2005

These are a series of preferences you can add to your prefs.js file in your profile folder (but NOT the user.js file; see the Keyconfig extension page for why) to add more functions that you can map to keyboard shortcuts using the Keyconfig extension.

Thunderbird General

Display Attachments Inline (Toggle)
Menu: View -> Display Attachments Inline
user_pref("keyconfig.main.xxx_key__Display Attachments Inline (Toggle)", "!][][][ToggleInlineAttachment(event.target);");
Rewrap
Menu in Compose Window: Edit -> Rewrap
user_pref("keyconfig.main.xxx_key__Rewrap", "!][][][goDoCommand('cmd_rewrap');");
Run Filters on Folder
Menu: Tools -> Run Filters on Folder
user_pref("keyconfig.main.xxx_key__Run Filters on Folder", "!][][][goDoCommand('cmd_applyFilters');");
Run Junk Mail Controls On Folder
Menu: Tools -> Run Junk Mail Controls On Folder
user_pref("keyconfig.main.xxx_key__Run Junk Mail Controls On Folder", "!][][][goDoCommand('cmd_runJunkControls');");
Delete Mail Marked as Junk in Folder
Menu: Tools -> Delete Mail Marked as Junk in Folder
user_pref("keyconfig.main.xxx_key__Delete Mail Marked as Junk in Folder", "!][][][deleteJunkInFolder();");
Send Unsent Messages
Menu: File -> Send Unsent Messages
user_pref("keyconfig.main.xxx_key__Send Unsent Messages", "!][][][goDoCommand('cmd_sendUnsentMsgs');");
Mark Message Answered
user_pref("keyconfig.main.xxx_key__Mark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,true,null);");
Unmark Message Answered
user_pref("keyconfig.main.xxx_key__Unmark Message Answered", "!][][][var hdr=GetDBView().hdrForFirstSelectedMessage; GetDBView().db.MarkHdrReplied(hdr,false,null);");
Focus Folder Pane
user_pref("keyconfig.main.xxx_key__Focus Folder Pane", "!][][][SetFocusFolderPane();");
Focus Thread Pane
user_pref("keyconfig.main.xxx_key__Focus Thread Pane", "!][][][SetFocusThreadPane();");
Focus Message Pane
user_pref("keyconfig.main.xxx_key__Focus Message Pane", "!][][][SetFocusMessagePane();");
View Message Body As Original HTML /Plain Text (Toggle)
user_pref("keyconfig.main.xxx_key__View Original HTML /Plain Text (Toggle)", "!][][][if(pref.getBoolPref('mailnews.display.prefer_plaintext')) MsgBodyAllowHTML(); else MsgBodyAsPlaintext();");
View -> Message Body As -> Original HTML /Simple HTML /Plain Text
user_pref("keyconfig.main.xxx_key__View Message Body As Original HTML", "!][][][MsgBodyAllowHTML();");
user_pref("keyconfig.main.xxx_key__View Message Body As Simple HTML", "!][][][MsgBodySanitized();");
user_pref("keyconfig.main.xxx_key__View Message Body As Plain Text", "!][][][MsgBodyAsPlaintext();");


Extensions

MoreButtonsPlus

Toggle between All and Normal headers
Menu: View -> Headers -> All /Normal
user_pref("keyconfig.main.xxx_key__Toggle Headers Button", "!][][][ToggleHeadersButton();");

Mnenhy

View Brief Headers (Toggle)
Menu: View -> Headers -> Brief
user_pref("keyconfig.main.xxx_key__Mnenhy: View Brief Headers (Toggle)", "!][][][goMnenhy.headers.ToggleHeaderViewBrief();");
View No Headers
Menu: View -> Headers -> None
user_pref("keyconfig.main.xxx_key__Mnenhy: View No Headers", "!][][]["goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNoHeaders);");
View Normal Headers
Menu: View -> Headers -> Normal
user_pref("keyconfig.main.xxx_key__Mnenhy: View Normal Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewNormalHeaders);");
View All Headers
Menu: View -> Headers -> All
user_pref("keyconfig.main.xxx_key__Mnenhy: View All Headers", "!][][][goMnenhy.headers.SetView(goMnenhy.headers.gkiViewAllHeaders);");