Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support '/' shortcut to search #2379

Open
aDotInTheVoid opened this issue May 14, 2024 · 0 comments · May be fixed by #2418
Open

Support '/' shortcut to search #2379

aDotInTheVoid opened this issue May 14, 2024 · 0 comments · May be fixed by #2418
Labels
A-Search Area: Search C-enhancement Category: Enhancement or feature request

Comments

@aDotInTheVoid
Copy link
Member

Problem

In rust-lang/rust#123355, we added / as an additional shortcut to open the searchbar. It's was already used by github, zulip, less, and google drive to focus/open the searchbar. Given that it's so common, I now find myself typing / by mussle memory, and expecting it to work in mdbook, before remembering that I need to use s here.

Proposed Solution

/ should behave like s, and open the searchbar.

Notes

I'd be happy to contribute an implementation of this, assuming you're willing to accept the feature.

@aDotInTheVoid aDotInTheVoid added the C-enhancement Category: Enhancement or feature request label May 14, 2024
@ehuss ehuss added the A-Search Area: Search label May 14, 2024
@rik86189 rik86189 linked a pull request Jul 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Search Area: Search C-enhancement Category: Enhancement or feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants