Skip to content

Allow composition of configs to avoid duplication #1513

@eugenesvk

Description

@eugenesvk

Currently if you change a lot of normal mode keybinds (e.g., change the GoTo mode as [keys.normal."g"]), you'd have to copy these changes several times to other modes so they keep working there (e.g., as [keys.select."g"] since), which is rather cumbersome, especially when you tweak the configs.
The source code uses a nifty let mut select = normal.clone(); trick that allows only editing the keybinds that are different

Would you please allow a similar ease of composition for the user configs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-keymapArea: Keymap and keybindingsC-enhancementCategory: Improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions