-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add basic vim navigation to urlbar #10518
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
Conversation
|
Could there please be some unit tests about this to make sure future firefox versions dont break this functionality? |
|
@mr-cheffy I've gone ahead and written a unit test for the vim navigation feature. It's a little crude, so let me know if you have a better way to force multiple possible selections in the URLBar more reliably. What I've done works, but I'm afraid it might be a little brittle, so I'll leave it up to your judgement. |
300e97c to
19e0f1a
Compare
|
Rebased to fix conflicts, is there anything else that needs to be done in this PR before it can get reviewed? |
This reverts commit 382a38c.
Will keep this in about:config but removing clutter from the Preferences page
|
Updated the PR to remove the option from Preferences to keep it just in about:config, removed the localization since that was only used for the Preferences checkbox, and added the test for when the about:config option is turned off. |
|
Is there anything else that needs to be done to get this feature out? |
|
I see that a recent zen update upgraded to firefox 143.0.4, so I'm building locally to make sure everything in this PR still works. |
|
Everything works, ready for re-review |
mr-cheffy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I was able to reproduce the test failure on Ubuntu, will let you know when it is fixed. |
|
Standard vim key bindings for navigation - assuming |
|
@KennethHoff Huh, I hadn't realized this because I'm so used to using I'll re-think the feature, maybe just give the preference a different name, or dive deeper to make this more configurable. |
|
#10753 has added CTRL-n and CTRL-p by default, though its not customizable. Perhaps this PR should be closed. |
|
Will open another PR once I get around to working on making those keys customizable |


Adds the keybinds ctrl+j and ctrl+k to down and up respectively when the urlbar is active for making selections.
This change adds:
Tested on MacOS and Ubuntu (Parallels)
Behavior we see:
zen-urlbar-vim-navigation-1080.mov