Skip to content

Allow to have parameters for an action#718

Open
RamonUnch wants to merge 6 commits intomainfrom
Allow-to-have-parameters-for-an-action
Open

Allow to have parameters for an action#718
RamonUnch wants to merge 6 commits intomainfrom
Allow-to-have-parameters-for-an-action

Conversation

@RamonUnch
Copy link
Owner

@RamonUnch RamonUnch commented Feb 22, 2026

  1. Use action_t struct instead of a simple enum.

  2. OK: Read parameters and store them in action_t struct.
    a) OK: for normal Alt+Click actions
    b) OK: done for Hotkeys, also a list of actions_t structs must be made to keep track of parameters, the list index is used for registering shortcut.

  3. TODO: Make UI for intuitive parameters selection with smart default values.

Action have parameters separated with underscores.
Step_U_50 = Step Up 50 pixels

use action_t struct instead of a simple enum:
Initial work
* MapActionW has to handle a terminating '=' as well as a NULL.
* strtoi() must stop on any non digit (fix).
* fix static_assert() macro for pre C11.
Step_1_XX, Step_2_50...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant