Skip to content

[Feature Request] - Customisable key bindings #374

@MangioneAndrea

Description

@MangioneAndrea

Description

It would be great to be able to fully customise the key bindings. Currently, everything is hardcoded, which makes it difficult to remember what each key does. This becomes more problematic when used in combination with other TUI applications, such as neovim.

Changes

The following changes to the application are expected

  • Change the actions of every view such that the keys can be read from a toml (?) file
  • Change the hints to show the right character

Implementation

Tuirealm supports the Serde deserialiser (https://docs.rs/tuirealm/latest/tuirealm/event/struct.KeyEvent.html#impl-Deserialize::for::KeyEvent). The simplest implementation would be to use a TOML implementation of Serde, since TOML is used for other settings.

It would also probably make sense to move all the bindings to a struct that derives from Default, so that a missing configuration file does not cause the application to break.

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions