Skip to content

zz vim-mode scroll for notebook viewport #9701

@LioSergent

Description

@LioSergent

Description

"zz" in normal mode in vim scrolls file content so that the cursor is centered in viewport.
This is quite confortable for vim users who generally like to limit their mouse usage.

CodeMirror vim implements this (works in obsidian at least) but does not work in the notebook layout of marimo.

In marimo case, I think this functionality needs to be re-implemented, maybe using the DOM and something like web viewport coordinates.

Are you willing to submit a PR? (You must receive approval from the team before submitting a PR.)

  • Yes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions