zed/assets/keymaps
andrew j 4e9ffa3ee1
markdown_preview: Add ScrollToTop and ScrollToBottom actions (#50460)
Add `gg`/`G` (vim), `cmd-up`/`cmd-down` (macOS), and
`ctrl-home`/`ctrl-end` (Linux/Windows) keybindings to scroll to the top
and bottom of the markdown preview.

The markdown preview already has page scroll (`ctrl-d`/`ctrl-u`), line
scroll (`ctrl-e`/`ctrl-y`), and item scroll (`alt-up`/`alt-down`) but
was missing top/bottom navigation. This adds two new actions —
`ScrollToTop` and `ScrollToBottom` — using the existing
`ListState::scroll_to()` infrastructure, following the same pattern as
the other scroll actions.

- [x] Done a self-review taking into account security and performance
aspects

Release Notes:

- Added scroll-to-top and scroll-to-bottom keybindings for markdown
preview (`gg`/`G` in vim mode, `cmd-up`/`cmd-down` on macOS,
`ctrl-home`/`ctrl-end` on Linux/Windows)
2026-03-17 11:55:48 +02:00
..
linux Ensure consistent newline behavior in auto-height editors with JetBrains keymap (#47595) 2026-03-06 11:34:58 +00:00
macos Add missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS (#51130) 2026-03-12 11:25:24 +00:00
default-linux.json markdown_preview: Add ScrollToTop and ScrollToBottom actions (#50460) 2026-03-17 11:55:48 +02:00
default-macos.json markdown_preview: Add ScrollToTop and ScrollToBottom actions (#50460) 2026-03-17 11:55:48 +02:00
default-windows.json markdown_preview: Add ScrollToTop and ScrollToBottom actions (#50460) 2026-03-17 11:55:48 +02:00
initial.json Add trailing commas to all asset jsonc files following #43854 (#44891) 2025-12-15 15:09:52 +00:00
storybook.json Add trailing commas to all asset jsonc files following #43854 (#44891) 2025-12-15 15:09:52 +00:00
vim.json markdown_preview: Add ScrollToTop and ScrollToBottom actions (#50460) 2026-03-17 11:55:48 +02:00