Closed nixypanda closed 8 months ago
@andreistan26 your PR seems to have broken this functionality. Any thoughts on how to make both your and this prefix searching work together?
Looking into it
Thinking about it for a bit, @nixypanda is right, for a CLI row editor going back when switching to normal mode is annoying. I would revert that PR. If you think it should stay as it is I can think about a solution @fdncred.
I have no problem reverting #699 if that's the right thing to do. What do you think @sholderbach?
I prepared this just in case https://github.com/nushell/reedline/pull/773
OK with reverting, doing the right thing around the vim cursor position differences between normal and insert mode requires a more holistic approach (see #766 ). So let's pull of the band-aid.
Platform macOS Terminal software kitty
Describe the problem you are observing. prefix history search is not working in vi-mode (normal) when hitting
k
key.Steps to reproduce
fn main() { let mut line_editor = Reedline::create().with_edit_mode(Box::new(Vi::new( default_vi_insert_keybindings(), default_vi_normal_keybindings(), )));
}