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

Use / to search #762

Open
dev-ardi opened this issue Apr 23, 2024 · 3 comments
Open

Use / to search #762

dev-ardi opened this issue Apr 23, 2024 · 3 comments

Comments

@dev-ardi
Copy link

NixOS/nixos-homepage#1382

I don't want to have to use my mouse to select the search box!
This is mainly for https://search.nixos.org/ but it could also be applied to the wiki and other places.

In most places you can use / to search. Github, gitlab, google search, rustdoc (soon)... It's the default vi key for search so I suggest using that.

@thecijal
Copy link

It would be pretty cool to get into the search box by typing /. I also think <Ctrl>+<K> would be awesome.

@dev-ardi
Copy link
Author

It would be pretty cool to get into the search box by typing /. I also think <Ctrl>+<K> would be awesome.

Once you have support for once it's probably trivial to add it for another hotkey. Curious, why Ctrl+k?

@thecijal
Copy link

thecijal commented Apr 29, 2024

Because Ctrl+k is a very common one as well as /.
Just a few examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants