VSCodeVim / VSCodeVim/Vim

Cannot scroll window in notebooks using `zz`, `zt` and `zb`

Open
#6,649 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
Hotkeys such as:

  • zz
  • zt
  • zb

Do not work using the native VSCode notebooks

To Reproduce
Steps to reproduce the behavior:

  1. Create a Jupyter notebook .ipynb
  2. Make a few cells that fill up more than a screen
  3. Try to scroll the window using zz, zt or zb, nothing works
  • Extension (VsCodeVim) version: 1.20.3
  • VSCode version: 1.56.2
  • OS: Windows

Additional context
See VSCode locking out the ability to use Vim keybindings that recenter the window, I demonstrate how it works on a normal file, then show it not working in a notebook:

https://user-images.githubusercontent.com/77730378/119208643-c6244c00-bad5-11eb-9b60-fa8e6ef72150.mp4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in a native VSCode Jupyter notebook using the listed steps, then compare zz, zt, and zb with their behavior in a normal file. Done means all three commands recenter or scroll the notebook window without breaking their normal-file behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.