-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Vim Mode 2022 #439
base: master
Are you sure you want to change the base?
Vim Mode 2022 #439
Conversation
The keybindings are hardcoded for now, but this is going to change.
Added moveTabLeft and moveTabRight functions, which take a tab ID and try to move the tab as far right or left in the tabOrder as possible. Added previouslyVisitedTab function that switches to the previously selected tab.
with activating input boxes using link hinting.
…m-mode-experimental
In Firefox 63 an old syntax for Marionette commands was deprecated. Updating mostly just meant prepending `WebDriver` to existing commands. This should fix most problems in #232
Vim mode still needs a lot more tests
…to key combinations only working after a certain number of key strokes.
…to key combinations only working after a certain number of key strokes.
This is because Travis' logs had 2 problems. 1. it doesn't capture the entire log output 2. it doesn't show logs when there's a timeout
… event could get interpreted repeatedly. Also some rewrites/improvements of the code. Key mappings can now contain control characters and meta keys with a vim-like notation. There's a hard insert mode, which disables all of browsh's shortcuts and requires 4 hits on ESC to leave. There's a new multiple link opening feature analogous to vimium, that's still incomplete.
After nearly 4 years I'm finally getting round to shipping all the tremendous hard work of @tobimensch, @j-rewerts and @ed2k. I can't apologise enough that it's taken so long.
do you want to community to use and test for your fork prior to merge? |
vimium in browsh will be a game changer for me! |
I was having trouble building this branch with the provided documentation. I assume the repo has a GitHub Action that successfully builds? |
I would love help with this. The only thing that needs fixing to get this merged is the failing tests. @jivank The local dev setup docs do indeed need updating. If you're on Linux or similar you can use https://github.com/browsh-org/browsh/blob/master/.github/workflows/main.yml for inspiration. |
I see in TTY tests:
This is a similar error I was facing when I was attempting to build it on my local machine. |
@tombh What sort of help do you need with this PR as of now? |
I never merged it because the tests failed. But considering that I've been giving Browsh so little attention, I guess I could just give up on the tests and make a release with this anyway. If enough people test this PR themselves then I suppose that's enough. |
All the keyboard shortcuts seem to work for me as expected! Would be nice if the README/website documentation included a list of the shortcuts -- or maybe just a link to browsh/interfacer/src/browsh/config.go Lines 78 to 136 in a075246
I packaged this PR's commit as a Nix flake for use with the Nix package manager. See below if you are interested in easy installation/testing with Nix. Flake is here: https://github.com/heywoodlh/flakes/tree/main/browsh Run the flake with the following command:
If you do this from Linux, my flake includes Firefox-ESR bundled with it, so it should just work. I've also provided an appimage of my bundled flake -- although, mileage may vary on how well it works as it was very slow for me:
|
I tested the keyboard shortcuts using the Dockerfile posted here. i then built and tested the docker image from the root of the repo using the following: docker build -t browsh-vim .
docker run --rm -ti browsh-vim https://hexdocs.pm/gleam_json for those who are curious, i tested via my fork here |
It would be nice to have binaries for the latest version. |
@tombh 🙏 |
I know 🥺 The automated CI build is broken, and it's tricky to fix. I keep wanting to sit down and do a proper rewrite. |
Can I finally get Vim Mode merged?
Fixes #236, #246 and #264