-
Notifications
You must be signed in to change notification settings - Fork 182
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
Vi mode (#94) #103
Vi mode (#94) #103
Conversation
Replace char ('r') KillWholeLine ('S', 'dd', 'cc')
But commands are not repeated
Sorry was on holiday, I'm taking a look at this now. |
#[derive(Debug, Clone, PartialEq, Copy)] | ||
pub enum Word { | ||
// non-blanks characters | ||
Big, |
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.
Why is this called Big?
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.
It is the term used at least by libedit, haskeline:
A "bigword" consists of: a maximal sequence of non-blanks preceded and followed by blanks
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.
Oh okay. Can you put that in as the comment?
src/keymap.rs
Outdated
} | ||
|
||
#[derive(Debug, Clone, PartialEq, Copy)] | ||
pub enum Anchor { |
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.
Can your provide comments here, out of context I don't know what this means/used for.
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.
I know it is used for yank, but a comment would help here.
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.
I chose this word because 'where' is a Rust keyword...
Any suggestion is welcome.
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.
Ah thats fine then.
Still missing: