Skip to content
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

Merged
merged 2 commits into from
Dec 7, 2016
Merged

fixes #1063 #1124

merged 2 commits into from
Dec 7, 2016

Conversation

xconverge
Copy link
Member

implements g; to go to last edited location

Copy link
Member

@johnfn johnfn left a 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) {
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const here too.

@xconverge
Copy link
Member Author

I want to loop backwards as well instead.

@xconverge
Copy link
Member Author

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

@xconverge xconverge changed the title fixes #1063 [WIP] fixes #1063 Dec 6, 2016
@xconverge xconverge changed the title [WIP] fixes #1063 fixes #1063 Dec 7, 2016
@xconverge
Copy link
Member Author

Ok @johnfn now this works better now and closer to vims behavior

@johnfn johnfn merged commit dd7aa19 into VSCodeVim:master Dec 7, 2016
@johnfn
Copy link
Member

johnfn commented Dec 7, 2016

Very cool.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants