-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replace mode and Vim motions (W
, E
, B
, ^
, _
) for inputs
#2143
Conversation
@@ -11,6 +11,18 @@ impl From<CmdCow> for Opt { | |||
|
|||
impl Input { | |||
pub fn type_(&mut self, key: &Key) -> bool { | |||
if self.mode() == InputMode::Replace { | |||
let Some(c) = key.plain() else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change back to normal mode for special keys.
Only here to fix <Esc>
being handled twice.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: 三咲雅 · Misaki Masa <[email protected]>
W
, E
, B
, ^
, _
) for inputs
@boydaihungst There's already another PR handling this, #1198, but there are still some edge cases with Unicode that need further testing before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me now, thanks a lot for contributing these awesome features @dxrcy!
Draft!
Closes #2119
r
^
,_
I
KeybindI
jumps to very first character of dialog input, even if it's whitespace #2120W
,E
B