Bug 4574 - Trigger for actions
Summary: Trigger for actions
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: UI/Actions (show other bugs)
Version: 4.0.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2022-03-14 20:42 UTC by Christoph Klassen
Modified: 2022-07-23 16:45 UTC (History)
1 user (show)

See Also:


Attachments

Description Christoph Klassen 2022-03-14 20:42:00 UTC
If users want to use actions they have to click on an entry in the menu. It would make actions more flexible if actions would be triggered by events, e.g. a users enters text in the message field or the user presses some keys as a shortcut for an action. The events are known well by programmers (Keypress, Focus etc.).
That way actions in Claws Mail would be more powerful and users still don't have to start to programming for Claws Mail to use this power.
Comment 1 Milan 2022-03-14 20:56:33 UTC
You probably missed one possibility - menu entry can have an accelerator assigned, so the action is performed on some user defined keypress. Also, an action could be assigned to a user defined toolbar entry, it is performed with a mouse click.

More elaborate actions are available via some plugin, especially scripting plugin - there are Perl (somewhat limited to filtering), Python (extending the basic functionality with definition of various new actions with ability to run some scripts on specific events) in official repository plus not yet official Lua plugin available on request (ported Python plugin's methods/properties with some extensions).

As actions are usually shell scripts, wiring them to such low level events as noted (Keypress, Focus...) could lead not to the best user experience... (my oppinion, others may see it differently). But still, there is much to explore...

Note You need to log in before you can comment on or make changes to this bug.