Skip to content

More general/unified approach to keybindings #450

Description

@camoz

Description

I just tried to add a keybinding for q to exit satty, but apparently this is not possible. Also I noticed that keybindings are currently defined in two places: the [keybinds] section and the [general] section (namely the actions-on-* settings).

So I thought it would be nice to unify the approach to keybindings and have them only defined in the [keybinds] section, e.g. by adding Enter, LeftMouse, RightMouse, etc as possible "keys", and exit, save, etc as possible "actions". AFAICS this should be possible in a backwards compatible manner.

I think it would also be nice to have the mappings defined as keybind = action instead of action = keybind, as generally one keybind can only have one action, but one action can have multiple keybinds associated with it (e.g. Esc and q could both be mapped to exit). But this is probably not doable in a backwards compatible manner and not so important I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions