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

Make Control+L focus the search bar (like browsers) #401

Closed
sunaku opened this issue Sep 10, 2015 · 10 comments
Closed

Make Control+L focus the search bar (like browsers) #401

sunaku opened this issue Sep 10, 2015 · 10 comments

Comments

@sunaku
Copy link

sunaku commented Sep 10, 2015

Please make Control+L focus the search bar, like how Web browsers focus their URL address bar.

See http://www.howtogeek.com/114518/47-keyboard-shortcuts-that-work-in-all-web-browsers/

@sunaku sunaku changed the title add Control+L shortcut to focus search bar (like Web browsers do) make Control+L focus the search bar (like browsers) Sep 10, 2015
@trollixx
Copy link
Member

Thanks, I'll add it shortly. Currently Escape does that, I cannot say I am happy with the choice.

Making Zeal behave more like traditional web browsers is only of my goals. Also, configurable shortcuts could be a good option as well.

Related issues: #10 and #62.

@trollixx
Copy link
Member

I've just discovered that we also have ? shortcut for selection of the current query without prefix. Not sure if anyone is aware about this. :)

I am implementing Ctrl+L right now. It will select the current search term without prefix (if any), and then select everything on the second press.

@trollixx
Copy link
Member

LOL, further investigation has shown that there's also Ctrl+K for the same purpose.

For the sake of the history:
?: 6c45498
Ctrl+K: a4125be

@sunaku
Copy link
Author

sunaku commented Sep 11, 2015

From *NIX perspective, ? is also strange. I would expect / to search instead (it works in Firefox). 😅

Update: Zeal already supports / for searching within current page, so please disregard my comment.

@trollixx
Copy link
Member

After some thinking, I have become less confident in this particular case. Firefox and Chromium support F6, Alt+D, Ctrl+L to focus address bar, and Ctrl+K allows to select search bar (In Chromium it switches address bar to search-only mode).

In Zeal the search bar is really just a search bar, not an address bar. It does not update when one's navigates through pages. To be consistent with browsers keeping Ctrl+K as the only shortcut is the right way.

I have some plans to add a breadcrumbs panel like the one Dash has. It might be that Ctrl+L et al. would work for focusing such panel better.

@trollixx
Copy link
Member

There's also Ctrl+E for activating the search mode in Chromium and Opera.

So many different options :)

@sunaku
Copy link
Author

sunaku commented Sep 19, 2015

True. 🙀 I think that documenting ? and / keys might suffice: I use them regularly now.

@Konfekt
Copy link

Konfekt commented Nov 1, 2015

Hitting Ctrl+K in Firefox opens a new page over here.

Be it named address- or search-bar, every popular browser lets you search by hitting Ctrl+L and entering a search term, so that Zeal would be most intuitive if it let you search by hitting Ctrl+L and entering a search term.

@Konfekt
Copy link

Konfekt commented Mar 26, 2017

Since then, any make news on making Ctrl+L focus the search field too? The breadcrumbs search bar? It would make Zeal more intuitive.

@lock
Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for a related request.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants