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

Implements go-to-first-input #133

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

isundaylee
Copy link
Contributor

Implements the functionality of focusing the first input on the page (preferring the first input in the current view area if one exists). Inspiration and general algorithm are from sVim.

For example, on a Google results page, pressing g i will focus the search box so that the user can type in a new query.

Default key binding set to g i.

@isundaylee
Copy link
Contributor Author

Just tested my rebased version on the newer upstream. Seems to work as expected. Would there be any interests in merging this? This seems to be a requested feature.

Thanks!

@aayushshah15
Copy link

@danielcompton are there any blockers to merging this? Anecdotally speaking, this is one of the most commonly used features among vimium users (on both chrome and firefox).

@paldepind
Copy link

Looks good to me 👍. I think this should be merged.

@@ -17,6 +17,7 @@ function getSettings() {
'scrollDownHalfPage': 'd',
'goToPageTop': 'g g',
'goToPageBottom': 'shift+g',
'goToFirstInput': 'g i',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is causing a conflict as js/settings.js is replaced by json/defaultSettings.json. If you would be able to add this line there instead I would like to merge this.

@isundaylee
Copy link
Contributor Author

@nbelzer Just rebased on master and pushed the change. I couldn't test it after the rebase though - so it'd be great if you can help build and test it.

Thank you for looking at this!

@nbelzer
Copy link
Collaborator

nbelzer commented Aug 12, 2020

@isundaylee Thanks, it works. Will be merging this.

@nbelzer nbelzer merged commit 8c4d66b into televator-apps:master Aug 12, 2020
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

Successfully merging this pull request may close these issues.

4 participants