Skip to content

scroll-cursor commands (zt, zb) don't work #210

Closed
@stapelberg

Description

@stapelberg

Vim has handy commands for scrolling without moving the cursor, e.g. zt, which scrolls the screen so that the line with the current cursor is placed as the first line. E.g., I often do actions like /main(<CR>zt, so that I can see as much of the main function as possible.

Would it be possible to implement zt, zb and zz?

Thanks!

Activity

johnfn

johnfn commented on Jun 18, 2016

@johnfn
Member

zz has been done. zt and zb are impossible until microsoft/vscode#2771 😞

jpoon

jpoon commented on Sep 21, 2016

@jpoon
Member

On 0.2.0:

  1. zz works
  2. zt and zb don't work. We do have CommandTopScroll and CommandBottomScroll which are called but the window does not update.

cc @rebornix

changed the title [-]scroll-cursor commands not implemented[/-] [+]scroll-cursor commands (zt, zb) don't work[/+] on Sep 21, 2016
rebornix

rebornix commented on Sep 22, 2016

@rebornix
Member

@jpoon I moved the master bits to extensions folder and tried, both zt and zb work perfectly. I don't know whether we did anything wrong with compiling, this is really weird.

jpoon

jpoon commented on Sep 23, 2016

@jpoon
Member

@rebornix Hmm..yeah, I see the same thing. Works in master, doesn't work in released version. Super strange. Let's hope this gets magically resolved when we release a new version.

rebornix

rebornix commented on Sep 23, 2016

@rebornix
Member

@jpoon If you generate a visx and install it manually, it works as well. Let's wait and see next version!

johnfn

johnfn commented on Oct 1, 2016

@johnfn
Member

This appears to be done for me. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @stapelberg@jpoon@johnfn@rebornix

      Issue actions

        scroll-cursor commands (zt, zb) don't work · Issue #210 · VSCodeVim/Vim