zed icon indicating copy to clipboard operation
zed copied to clipboard

Pagedown/Up should scroll the items a page down/up in lists controls

Open tkfv opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Hi, you open the command palette, you press Page down and it goes to the last item on the last page. Page up goes to the first item.

This is not what page keys should do, they should what they do in the editor: Scroll pages.

Incidentally the current behavior is what the Home/End keys should do, but they do nothing.

Environment

Zed: v0.142.6 (Zed) OS: Linux Wayland arch unknown Memory: 30.1 GiB Architecture: x86_64

tkfv avatar Jul 09 '24 09:07 tkfv

This stems from the following global keybinds: https://github.com/zed-industries/zed/blob/c11bde7bf4e428be7639aaf9ffc7ea3dc5becf16/assets/keymaps/default-macos.json#L8-L9 https://github.com/zed-industries/zed/blob/c11bde7bf4e428be7639aaf9ffc7ea3dc5becf16/assets/keymaps/default-macos.json#L14-L15

To support pagewise navigation Zed would need to add menu::selectPageDown / menu::selectPageUp actions and rebind the defaults accordingly.

This affects:

  • project panel
  • command palette
  • file finder
  • autocompletion popovers
  • etc

notpeter avatar Jan 02 '25 16:01 notpeter

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Sep 24 '25 07:09 github-actions[bot]