-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fixes #1063 #1124
fixes #1063 #1124
Conversation
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.
LGTM with minor changes.
|
||
let prevPos = this.getLastHistoryEndPosition(); | ||
|
||
for (var steps of this.historySteps) { |
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 you use const
here?
keys = ["g", ";"]; | ||
|
||
public async exec(position: Position, vimState: VimState): Promise<VimState> { | ||
let prevPos = vimState.historyTracker.getLastContentChangePosition(); |
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.
const
here too.
I want to loop backwards as well instead. |
Actually g; and g, are supposed to move through the change list (forward and backward) not just to the last one, so this needs some more attention for sure |
Ok @johnfn now this works better now and closer to vims behavior |
Very cool. |
implements g; to go to last edited location