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

Allow custom keymap only for specific sites #3874

Closed
CarlaFernandez opened this issue Jul 29, 2021 · 6 comments
Closed

Allow custom keymap only for specific sites #3874

CarlaFernandez opened this issue Jul 29, 2021 · 6 comments

Comments

@CarlaFernandez
Copy link

Hello,

I usually use Jupyter Notebooks in the browser. These notebooks have custom keymaps which also function similarly to Vim, so Vimium interferes with them. For example, to enter a search function you must use Esc+F, which if you try with Vimium activated doesn't work (of course, it shows you link hints).

My current solution is simply deactivating Vimium completely for Jupyter Notebook URLs, but I would like the best of both worlds: being able to create custom keymaps which would apply only to Jupyter Notebook URLs. In any other site, the usual keymaps would apply.

Would this be possible? I think it's a pretty amazing feature.

@gdh1995
Copy link
Contributor

gdh1995 commented Jul 29, 2021

In short, Vimum doesn't support such a feature. You may see my feature design (and customized version of Vimium) in #3272 (comment) .

@CarlaFernandez
Copy link
Author

Amazing! Will give it a try, thank you :)

@CarlaFernandez
Copy link
Author

Hello again @gdh1995,
I tried to configure Vimium C as you explain in your post, but it seems not to be working. Here's a pic of my configuration:
image

As I understand, with this configuration Vimium should only work if I press the f9 key, and when I'm done with it I should press f10 to exit insert mode. However, if I don't press f9 and just press f, link hints still appear. Any ideas?

@CarlaFernandez
Copy link
Author

CarlaFernandez commented Jul 29, 2021

Ah! I managed to get it working. Turns out the URL was http instead of https, so the URL pattern wasn't matching. Finally replaced it by ^http://localhost:* and it works wonders.
Thanks again!

@gdh1995
Copy link
Contributor

gdh1995 commented Jul 29, 2021

Yes Vimium C tries to guess a regexp from your pattern, but it failed and made a wrong one.

BTW, as said in https://github.com/gdh1995/vimium-c/wiki/Enable-or-Disable-all-frames-by-a-shortcut#how-to-switch-between-two-statuses , now you may use vimium://status/toggle-enabled to toggle status using only one key.

@CarlaFernandez
Copy link
Author

cool!

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