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.
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::Commandand adding the empty check to cmdbar but it's hacky and doesn't work anyways.