Closed
Description
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!
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
johnfn commentedon Jun 18, 2016
zz has been done. zt and zb are impossible until microsoft/vscode#2771 😞
jpoon commentedon Sep 21, 2016
On 0.2.0:
zz
workszt
andzb
don't work. We do haveCommandTopScroll
andCommandBottomScroll
which are called but the window does not update.cc @rebornix
[-]scroll-cursor commands not implemented[/-][+]scroll-cursor commands (zt, zb) don't work[/+]rebornix commentedon Sep 22, 2016
@jpoon I moved the master bits to extensions folder and tried, both
zt
andzb
work perfectly. I don't know whether we did anything wrong with compiling, this is really weird.jpoon commentedon Sep 23, 2016
@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 commentedon Sep 23, 2016
@jpoon If you generate a visx and install it manually, it works as well. Let's wait and see next version!
johnfn commentedon Oct 1, 2016
This appears to be done for me. :)