Skip to content

docs: Allow navigating search results with arrow keys#50901

Merged
gaauwe merged 3 commits intozed-industries:mainfrom
implabinash:fix/docs-search-results-scroll-with-keys
Mar 11, 2026
Merged

docs: Allow navigating search results with arrow keys#50901
gaauwe merged 3 commits intozed-industries:mainfrom
implabinash:fix/docs-search-results-scroll-with-keys

Conversation

@implabinash
Copy link
Copy Markdown
Contributor

Closes #50604

before.mp4
after.mp4

Results:

Now, you can scroll the search results with the arrow keys.

Suggestion:

While this is working, I like to propose some better UX.

When you scroll with the arrow keys, the whole search results are scrolling along with the search bar. But, I think it would be better if we keep the search bar fixed on top and only the results scroll. Here is an example:

suggesting.mp4

If you think this will be better, please let me know, and I will update this PR.

Thank you.

Release Notes:

  • Fixed docs search results scrolling with arrow keys

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @implabinash on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Mar 6, 2026
@implabinash
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 6, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 6, 2026

The cla-bot has been summoned, and re-checked this pull request!

@gaauwe
Copy link
Copy Markdown
Contributor

gaauwe commented Mar 6, 2026

Thanks, this is indeed a nice improvement! I agree that it would be nice if the search bar stays fixed to the top when scrolling

@implabinash
Copy link
Copy Markdown
Contributor Author

I updated the search bar style to fix it at the top while scrolling.

@maxdeviant maxdeviant changed the title fix(docs): fix search results to scroll with arrow keys docs: Allow navigating search results with arrow keys Mar 6, 2026
@gaauwe gaauwe merged commit cbb7982 into zed-industries:main Mar 11, 2026
28 checks passed
@gaauwe
Copy link
Copy Markdown
Contributor

gaauwe commented Mar 11, 2026

Made a few tweaks to have the scrollbar flush to the side but overall great update, thanks!

@implabinash implabinash deleted the fix/docs-search-results-scroll-with-keys branch March 11, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Search bar results view doesn't scroll with arrow keys

2 participants