Add page up/down bindings to the Markdown preview (#33403)

First time contributor here. 😊

I settled on markdown::MovePageUp and markdown::MovePageDown to match
the names the editor uses for the same functionality.

Closes #30246

Release Notes:

- Support PgUp/PgDown in Markdown previews
This commit is contained in:
Daniel Sauble 2025-07-02 02:14:34 -07:00 committed by GitHub
parent 123a25c58c
commit f000dfebd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 119 additions and 4 deletions

View file

@ -8,7 +8,13 @@ pub mod markdown_renderer;
actions!(
markdown,
[OpenPreview, OpenPreviewToTheSide, OpenFollowingPreview]
[
MovePageUp,
MovePageDown,
OpenPreview,
OpenPreviewToTheSide,
OpenFollowingPreview
]
);
pub fn init(cx: &mut App) {