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

zz in visual, visualline, and visual block mode #820

Merged
merged 2 commits into from
Oct 3, 2016
Merged

zz in visual, visualline, and visual block mode #820

merged 2 commits into from
Oct 3, 2016

Conversation

xconverge
Copy link
Member

Yay! We love PRs! 🎊

Please include a description of your change and ensure:

  • Commit message has a short title & issue references
  • Each commit does a logical chunk of work.
  • It builds and tests pass (e.g gulp)

More info can be found on our contribution guide.

keys = ["z", "z"];

public async exec(position: Position, vimState: VimState): Promise<VimState> {
// In these modes, you want to take the full selection and find the middle point
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure? For me, zz just centers on the active cursor.

Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently I made up functionality, I am not sure how I tested it but it was wrong. Thanks for carefully checking what I am actually doing....

@johnfn
Copy link
Member

johnfn commented Oct 3, 2016

I think it's sufficient to add all visual modes to the mode list for zz.

@johnfn
Copy link
Member

johnfn commented Oct 3, 2016

Good stuff! Thanks for your work, @xconverge!

@johnfn johnfn merged commit b01dec0 into VSCodeVim:master Oct 3, 2016
@xconverge xconverge deleted the zz-in-visual branch October 10, 2016 02:25
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