Skip to content

Make pressing backspace or delete in an empty command bar exit the command bar #173

@maxdulay

Description

@maxdulay

In vim, pressing the backspace or delete key in an empty command bar exits the prompt. I've attempted to modify the modalkit vim bindings as well as the cmdbar in modalkit-ratatui to reproduce this behavior but I haven't found a satisfactory way to do so and I was wondering if you had any ideas on how to implement this.

I tried modifying the behavior of backspace when in VimMode::Command and adding the empty check to cmdbar but it's hacky and doesn't work anyways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions