Skip to content

feat: Support custom keybindings via config.toml #45

Description

@shatrughantwt

Summary

Currently, all keybindings are hardcoded in keys.go, making it impossible for users to remap keys without modifying the source code. This request proposes moving keybinding definitions into config.toml so users can customize them freely.

Current Behavior

All key mappings are statically defined in keys.go
There is no way to override these at runtime or via configuration.

Desired Behavior

Users should be able to define custom keybindings in config.toml
If a key is not defined in config.toml, the app should fall back to the default value defined in keys.go

Proposed Implementation

  • Add a [keybindings] section to the config.toml schema
  • On startup, load keybindings from config and merge with defaults
  • Update keys.go to read from a shared config struct instead of hardcoded values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions