-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ToggleMessageTag #117
Comments
Remember to include window objects in custom commands.
Tips Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite. Use the cmd shorthand for calling a command using the goDoCommand method. For example, "cmd:cmd_nextMsg" is the same as "window.goDoCommand('cmd_nextMsg');". Use the func shorthand for calling a function on the window object without a parameter. For example, "func:MsgNewMessage" is the same as "window.MsgNewMessage();". There is a tbkeys.xpi link on the releases page. Install tbkeys |
I was sure I tested window.Toggle etc earlier today and it didn't work, but now it worked, so I guess I had a misspell or something! Thank you very much! Also thank you for the additional information, it was very useful :-) I'm using tbkeys 2.2.0 from 10th of November 2022. |
Sorry but I cannot make this work for the existing tags. For example I would like to bind "i" to the Important tag, but this does not work for me: |
Try this:
About new mail front end |
Thunderbird 115 Tried this: |
Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. There is a tbkeys.xpi link on the GitHub releases page. Try running the following code snippets in the console as a test. i.e. Menu Bar > Tools > Developer Tools > Error Console
The first code results in the $label1 string for me since I'm using the default tags. The second code adds the Important tag to the selected message. The second code doesn't remove the Important tag if I run the second code again. |
I am using tbkeys, not tbkeys-lite |
I think I have it working now, not sure what is different, however as you say, it does not toggle. Thanks for your help |
I would like to assign keys to certain tags (I have more than 9 tags). I asked at stackoverflow and got a helpful answer. But I can't get it to work.
Since I'm supposed to use eval I should just the code provided there, with nothing in front like cmd or func, is that correct? This is among the things I tried.
"q": "ToggleMessageTag(MailServices.tags.getKeyForTag('business'), true);",
Since this is not working (nothing happens when I hit q) I guess I have to add some more code, but what? I hope you may help me, thanks for a great addon!
I'm using tbkeys 2.2.0 from 10th of November 2022.
The text was updated successfully, but these errors were encountered: