First of all, you'll have to install the
Keyconfig extension. It allows one to override some existing keyboard shortcuts or define new shortcuts both in Firefox and in Thunderbird. The Thunderbird command name for the "Edit / Paste Without Formatting" operation is
cmd_pasteNoFormatting
. So all you have to do is to assign a new shortcut to the default "Paste" key binding and assign the Ctrl+V to this
cmd_pasteNoFormatting
command. I've done it and it worked for me on Mac OS X and with TB 2.0.0.0.
Comments
THANK YOU
exactly what I had to do was
goDoCommand('cmd_pasteNoFormatting');
and code
goDoCommand('cmd_pasteNoFormatting');
and apply new CTRL+V key
then it worked
THANKS!
Re: exactly what I had to do was
Works like a charm. One
One thing though is when I set Ctrl+Shift+v to be 'Paste', it uses the original 'Paste as Quote'. I don't see the key setting for paste as quote anywhere in keyconfig.
Re: works like a charm
goDoCommand('cmd_nameofthecommand');
cmd_paste
cmd_pasteNoFormatting
cmd_pasteQuote
chrome
subdirectory. These are actually ZIP files so a simpleunzip
can extract their contents. Eg. to find the command for the "Paste As Quotation" command, you've to search all these JARs for the "Paste As Quotation" string. You'll find a number of hits, but the relevant one is in the locale definition JAR, en-US.jar in my case (since I use the English version of Thunderbird). Of course, if you use TB in some other language, then you'll have to look into the locale JAR of that language and look for the menuitem's label as you see it in TB.Back to the example ... the translated (ie. English) version of the "Paste As Quotation" label is in
chrome/en-US.jar/locale/en-US/editor/editorOverlay.dtd
:<!ENTITY pasteAsQuotationCmd.label "Paste As Quotation">
This means that the label ID for the command is
pasteAsQuotationCmd
. Now search for the label ID in the other JARs of thechrome
directory and you'll find that it's inchrome/comm.jar/content/editor/editorOverlay.xul
(what a surprise<command id="cmd_pasteQuote" oncommand="goDoCommand('cmd_pasteQuote')" label="&pasteAsQuotationCmd.label;"/>
The relevant part of this is the
goDoCommand('cmd_pasteQuote')
attribute since this defines the code that is run, when the command is triggered.Is it possible to re-map
Thank you.
Re: Is it possible to re-map
No need for a plug-in!
I know this is an old thread, but this is the first result for a google search of this issue and I wanted people to know you don't need to install any plugins to do this.
Re: No need for a plug-in!