wshanks / tbkeys Goto Github PK
View Code? Open in Web Editor NEWCustom keybindings for Thunderbird
License: Other
Custom keybindings for Thunderbird
License: Other
Is there a way to access the rightclick menu pane and select an option in messagepane.
I would like to have a shortcut that toggles xnote++ (another thunderbird plugin). In fact, this could open us a variety of additional use cases that accelerate routine workflow.
Further, on a separate note (no pun intended!) can we access thunderbirds menubar options and assign shortcuts.
Thanks and as always this is the indespensible thunderbird plugin.
i tried these in compose key bindings
, but none works.
"command+backspace": "cmd:cmd_delete"
"command+del": "cmd:cmd_delete"
"cmd+backspace": "cmd:cmd_delete"
"cmd+del": "cmd:cmd_delete"
I configured tbkeys to "Unset singles" keys in the main section.
The problem is that blocking single keys prevents me from typing in the description of an Edit Event window.
Steps to reproduce:
{
"0": "unset",
"1": "unset",
"2": "unset",
"3": "unset",
"4": "unset",
"5": "unset",
"6": "unset",
"7": "unset",
"8": "unset",
"9": "unset",
"]": "unset",
"[": "unset",
"a": "unset",
"b": "unset",
"c": "unset",
"f": "unset",
"j": "unset",
"k": "unset",
"m": "unset",
"o": "unset",
"p": "unset",
"r": "unset",
"s": "unset",
"t": "unset",
"u": "unset",
"w": "unset",
"x": "unset",
"#": "unset"
}
i'm search how to add "mark thread as read" code to the json file
i use several time when reading newsgroups
thanks!
First and foremost, thanks for continuing to keep this working and improve it! (It's still amazing to me that the Mozilla guys refuse to allow these to be disabled from their UI ...)
In MacOS, Thunderbird 68.12.0, the native single key shortcuts include the second-level menu item
and the uppercase ones
In addition, there is a top level menu item
None of these appear to be disabled after use of the "Unset singles" button. (There are some other second level menu items, but I believe they're all overridden by your unset-singles config.)
Perhaps not as harmful as some other easily typed things, but I see no reason to leave them active if that can be avoided.
Thunderbird upgraded the extension to a newer extension from 2.0.2 and I lost all key bindings. I could not find where they were stored. I managed to regain them by downgrading back to the 2.0.2. But it would be really great if extension would migrate key bindings between versions.
Also, where are key bindings stored in 2.0.2? I could not find them anywhere.
I coming from trlkly/dorando-keyconfig#30, Thanks for the extension, but could You add d
hotkey for delete message, it's the only reason I used dorando-keyconfig
It looks like shortcuts only work in the main window, but not in the window while I am editing the message.
It would be nice to have access to the MailExtension API for eval
commands. Perhaps an equivalent of cmd:
could be created as well for MailExtension functions.
The fix in #88 resulted in keys not firing for message tabs (at least HTML ones).
Hello,
First of all, thank you for your addon !
I have one question that is not an issue or a bug (sorry if this is not the proper place to do so) : I'm trying to make "ctrl+v" the default for the function "paste without formatting".
However, it seems the command "cmd_pasteNoFormatting" doesn't exist/work anymore ?
I can't find it here => https://hg.mozilla.org/comm-central/file/tip/mail/base/content/mainCommandSet.inc.xhtml
and it's the only command I found after googling for a while.
I tried => "ctrl+v": "cmd_pasteNoFormatting"
in the addon settings but that doesn't work, nothing is happening.
Do you have any idea / work around to make this possible ?
I know they have the "paste without formatting" option from the right click menu, but I'm looking to make that function a shortcut.
Thank you.
I'm happy about tbkeys, as it helps me disable dangerous one hit disasters in Thunderbird (ignore thread, archive, etc).
I'm troubled, though, as it currently remains active when editing the calendar (create calendar entry and directly type its name), which frequently kills my calendar, or simply leads to omitted characters in the description of the entry.
Would it be able to include an option that allows the user to disable tbkeys for the calendar tab?
Thanks heaps!
Hello, can you please extend the readme with whether keys like "enter" (or "return" (or "ret")), "backspace" (or "bksp"), "delete" (or "del") are available? Thank you in advance
So, first, thanks for this extension. Loosing keybindings with TB 68 was so hard. This gets me so close.
However, it seems like the keybindings are active when the filter these messages box is up. I was recently trying to search for "brewery" in some emails, and the moment I hit "r" a reply box popped up.
It would be great if this would only work if the message list was the active focus element.
i think it would be good if there's button to reset customizations to defaults, in case you messed up or want to see if there's been any updates to bindings from project itself.
for reference, I'm pasting my current content, but i have no idea is it modified or the default :)
{
"j": "window.goDoCommand('cmd_nextMsg')",
"k": "window.goDoCommand('cmd_previousMsg')",
"o": "window.goDoCommand('cmd_openMessage')",
"f": "window.goDoCommand('cmd_forward')",
"#": "window.goDoCommand('cmd_delete')",
"r": "window.goDoCommand('cmd_reply')",
"a": "window.goDoCommand('cmd_replyall')",
"x": "window.goDoCommand('cmd_archive')",
"c": "window.MsgNewMessage()",
"u": "if (((window.document.activeElement.id == 'messagepane') || (window.document.activeElement == 'threadTree' )) && (window.document.getElementById('tabmail').tabContainer.selectedIndex!=0)){ window.CloseTabOrWindow()}; window.goDoCommand('cmd_getMsgsForAuthAccounts'); window.goDoCommand('cmd_expandAllThreads')"
}
Key bindings are active in options window.
Because of this it's impossible to type "j" character in account configuration if you set this:
{"j": "unset"}
in main key bindings.
I need a custom function that only close tab like https://addons.thunderbird.net/en-US/thunderbird/addon/close-on-escape-too/
I tried func:CloseTabOrWindow, but it terminates thunderbird itself too if there is no tab opening. I also tried tbkeys:closeMessageAndRefresh, although it does not terminate thunderbird, it has another side effect: expands all thread (which I don't want either).
What I need is tbkeys:closeMessageAndRefresh, but does not expand thread.
(Note: I am using tbkeys-lite therefore writing arbitrary function is not possible)
I got this message by Mehdi A.:
I use Thunderbird 78.0 x64 on Windows 10 x64 version 2004 and the script intercepts key presses in text search boxes like Quick Filter and about:config page. Also, I cannot invoke a menu item, e.g. alt+f for File menu. (locale is en-us and tbkeys version is 2.0.1.)
I cannot reproduce this in Ubuntu 20.04
I set up vim-like shortcuts for navigating messages (j/k for previous/next), but I can't seem to find a way to do the same with folders? I'm looking to use shift+j and shift+k to navigate to previous/next folder. Even one step better would be to have the option of searching for a folder name as a quickswitch, but I would expect that to be very difficult.
Any suggestions as to how navigating next/previous folders can be done seamlessly?
This setting would remap only the most dangerous keys that cause havoc if you don't notice, that you have not focused your new mail but the main window and start typing blindly:
{
"j": "window.goDoCommand('cmd_nextMsg')",
"m": "window.goDoCommand('cmd_previousMsg')",
"s": "window.goDoCommand('cmd_openMessage')",
"k": "window.goDoCommand('cmd_reply')",
"a": "window.goDoCommand('cmd_replyall')",
"w": "window.goDoCommand('cmd_forward')",
"c": "window.MsgNewMessage()"
}
maybe add this as another examle in the Readme
Not sure if there's already a command to do this, but I use the F6/shift+F6 command to move between the mail panes regularly, but can't seem to find a command to bind to. I'd like to use the same shortcuts, but with a different key. Is this something tbkeys can do?
I have been trying to get tbkeys added to the Thunderbird addons site for several months (just waiting in the queue with a 2-3 month wait time between responses from the admins). Ultimately, the admins there say they will not allow tbkeys because it uses eval()
(even though it only calls eval()
on strings provided by the user).
I don't want to give up eval()
because the goal of tbkeys is to replace Keyconfig as much as is possible and also to give users as much power as possible. Still, it is useful to be listed on the Thunderbird addons site. I think the best option is to create a "lite" version of tbkeys that only accepts arguments to goDoCommand
for its mappings. This will avoid using eval()
and still provide most of the most obvious use cases for tbkeys (remapping the builtin shortcut keys). It will also provide an opportunity to advertise the "more powerful, full version of tbkeys" from the tbkeys-lite listing on the Thunderbird add-on site.
I have been using Dorando keyconfig with Thunderbird 60. I haven't upgraded to TB-68 because that extension is no longer supported. I like what you have done with tbkeys. But I'm hesitant to adopt tbkeys as I'm worried it won't be compatible with TB-73 and beyond. Do you have any idea about future compatibility of tbkeys with Thunderbird.
Great job nonetheless and Thanks.
p.s. It is ridiculous that Mozilla can't incorporate custom user keybindings in all their applications.
First I must thank you for doing this great job
Finally I can update from v60.*(For Dorando Keyconfig)
I went through the readme, and found no list of funcs
currently I am working on
Thank you so much
Installed this plugin, set all keys to "unset" and Alt+F does not open file menu as it should.
I see no mention of simply installing tbkeys-lite directly from the official add-on page.
Is this an official release?
I'm trying to customize keys for the following Thunderbird functions:
I poked quite a bit in all resources linked from the Readme, but so far could not find these.
This could be just a "documentation ticket". If these could be customized with tbkeys
, perhaps they could be added to the Readme?
I have been using the add-on for a while now and never had any problems until updating to Thunderbird 91. I never had this problem in TB 78.
Here are the steps to reproduce the problem.
If I go to the same page in Firefox or Chrome, the search field works fine. I don't have this problem in any other part of Thunderbird or in any other program either.
With the add-on disabled, I have no problems typing into that search box.
Let me know if I can provide any additional information.
Thanks,
Bill
I think the main purpose of this add on is to unset the dangerous keys, that cause havoc if you type them uncontrolled because you happen to have the focus on the wrong window, so those new shortcuts should not be in the defaults and only be optional for users that are not afraid of those single-key-shortcuts:
the others are harmless and just open some windows ;)
so better set those as default to
just share it as an exmaple.
Thank you for making this!
I installed it to TB 78.8.1 and clicked on "Unset Singles". It seems to miss symbol keys such as the backslash (for Collapse All Threads) and the star (*) key (for Expand All Threads). These keys still work.
I manually added these:
"*": "unset",
"\\": "unset"
and now these keys are disabled. Maybe there are more symbol keys that need to be disabled.
Will, thank you!! for developing this extension and updating it to work with Tbird 78. I've been suffering ever since Dorando stopped working.
Is it possible to "unset" the out-of-the box behavior of the Delete key? I have tried spelling Delete in various ways in the mapping, but no success yet. Thanks!
-Marty
Please add installation instructions on how to add this extension to Thunderbird 68+.
over in the tb forums some folks were working on a shortcut to toggle the show/hide remote content option on messages when the default is set to hide remote content
contributor morat has figured out how to add the ability for a message window to respond to shortcuts; I'm wondering if that can be integrated into this extension for everyone; I'd really like this same functionality for myself without resorting to one-off modification
I just noticed that tbkeys-lite 2.1.0 is no longer working, and I'm back to accidentally doing things with single-key shortcuts I disabled. I don't see any error in the error console. Is it just me? Not sure exactly when it happened, but I think it was fairly recent. I'm now on 78.5.0 on macOS 10.14.6.
It would be helpful to add a debugging setting that when toggled on would log all element tagName
values in stopCallback
. This way users could report what tag names are getting callbacks fired or not fired as desired. There may be other points where it would be good to log information.
Thanks for continuing in the tradition of Keyconfig. In Keyconfig I could use cmd_scrollLineDown
and cmd_scrollLineUp
to scroll through the pages. However, I can't seem to use those in tbkeys. I can't find that command here. Is that a new limitation in Thunderbird?
There used to be a shortcut / keybinding ('', but not sure if it has been the default keybinding) to quickly toggle the filter of the message window by "sender", "recipients" and "subject" of the currently selected mail. I believe it was a feature of the https://github.com/trlkly/dorando-keyconfig add-on.
Maybe this feature can already be achieved with tbkeys
. If so, it would be nice to document how to do it.
Thank you very much for this add-on!
I see that the tbkeys-lite author (thank you!) is also a fan of Nostalgy. But the two sort of conflict. "tbkeys> unset singles" unsets the 's' (the TB star command), but Nostalgy wants 's' to be the trigger for the save process. (Nostalgy's use is not a dangerous single-key-shortcut, because it just starts a process that can then be aborted. However, Nostalgy's Shft-S could be considered a dangerous single-key-shortcut, for those concerned about triggering something accidentally while they intend to be typing.)
I'm not exactly sure how to best fix this. Removing "s":"unset" from tbkeys does re-enable the Nostalgy behavior. But those wishing to unset all singles would probably wish to tie a different key sequence to the command, and I don't know how to refer to commands of add-ons.
Thanks so much, Will, for creating tbkeys-lite. Life-saver after Dorando-keyconfig.
How do I bind Function (F??) keys?
I tried:
"F11": "func:MsgBodyAllParts"
but it didn't work. It did the Thunderbird default "Show or hide Today Pane"
Using a single alphabet works though, e.g.:
"m": "func:MsgBodyAllParts"
Thanks for any pointers.
Using Thunderbird 78.6; tbkeys-lite 2.1.1
I found the function here : MsgMoveMessage and I'd love to use that to create a shortcut key to move a message to a specific folder. Is this possible? I've worked at it a while to no avail.
I'd also like to be able to navigate to a folder or filter to a specific tag. Are either of these possible?
Thanks.
Installed this plugin and there is no way to figure out how to disable Ctrl+Enter to avoid accidental mail send.
Is there a chance to get some help button in a configuration dialog?
This is more of a question than an issue (at least for now).
How to configure shortcuts for multimedia / special keys?
I would like to set a custom action for XF86Forward (using KDE / X).
While here, the same question for extended mouse buttons.
Thank you!
e.g.
"shift+a": "func:loadFolderView(0)",
"shift+s": "func:loadFolderView(2)",
Hi,
I'm using Thunderbird as a feed reader and I'm interested to add key bindings for creating new folders and subscribe to feeds. I have no experience with writing Thunderbird addons but I know some JS and would give it a try if it is possible. I would be thankful for any pointers or general info about the feasibility.
Hi.
Sorry if this is a silly question, but is there a command to mark a message as unread?
Actually, is there a full list of possible commands somewhere?
Thanks a ton for this by the way!
Hello and thanks for this amazing addon that makes thunderbird 78 usable again.
Is it possible (right now or in the future) to map tab controls (next/previous or close tabs) ? It seems pretty basic but I can"t find it on https://hg.mozilla.org/comm-central/file/tip/mail/base/content/mainCommandSet.inc.xhtml ...
That would be really amazing for my workfow.
Hello,
how to remove the SHIFT+S key to set all as read?
Thank you.
Mousetrap does not know about XUL elements that are not standard HTML, so it does not suppress itself inside of them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.