micz / ThunderAI

ThunderAI is a Thunderbird Addon that uses the capabilities of ChatGPT or Ollama to enhance email management.
https://micz.it/thunderbird-addon-thunderai/
GNU General Public License v3.0
36 stars 9 forks source link

add keyboard shortcuts for rewriting and other options #130

Closed milla-dev closed 1 month ago

milla-dev commented 2 months ago

hello,

I frequently use your AddOn, and adding a keyboard shortcut would save me a lot of time. Is it possible to implement this? Currently, I have to use the mouse to select the option, which slows down the process.

thx ! Michael

micz commented 2 months ago

Thank you for the suggestion; I think it could be a great feature to add.

Do you think it could involve something like CTRL + ALT + A, followed by a method to choose the prompt via keyboard, such as searching by name or using a number? Or were you thinking about a way to assign a shortcut directly to a prompt?

milla-dev commented 2 months ago

I tried using Ctrl+Alt+A in Thunderbird on Windows, and it doesn't trigger any action, so it seems to be fine for me :)

micz commented 2 months ago

I was trying to keep the menu like as the one that is in use now and use the shortcut to open a panel to let the user choose the prompt, but it's not technically possibile.

The only way I found to do this is to remove the classic menu and use a menu like this one:

immagine

You could open in clicking on the button or using a shortcut, then you could:

What do you think about it?

micz commented 1 month ago

I released version 2.2.0pre3 with this feature, you can download it from here: https://github.com/micz/ThunderAI/releases/tag/v2.2.0pre3

Here you can find brief instructions on how to use the new menu: https://micz.it/thunderbird-addon-thunderai/dynamic-menu/

micz commented 1 month ago

Available in version 2.2.0.

milla-dev commented 1 month ago

hello, it is perfect :) Testing it now 👍