Skip to content

A command could declare its own keybinding #2

Description

@merces

Maybe also related to #1, I'd like a new feature to declare its own key binding. For example, I'd like to define in search.rs that that / key will open search.

Currently, I have a single function for every view (text, hex) such as

pub fn hex_mode_events(app: &mut App, key: KeyEvent) -> Result<bool> {

It's not THAT bad IMHO, but can it be better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions