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

rewind and forward using h and l in youtube #1273

Open
kbilsted opened this issue Nov 28, 2024 · 3 comments
Open

rewind and forward using h and l in youtube #1273

kbilsted opened this issue Nov 28, 2024 · 3 comments

Comments

@kbilsted
Copy link

What command or commands

map l scrollRight

How should a feature do

I want to scroll forward using l in youtube and other bigger video sites

When a user has done such steps:

1 insert map l scrollRight
2 goto youtube.com
3 press l

then Vimium C should do:

forward the video

Browser and OS

  • Browser name: chrome
  • OS name: win11

Version 131.0.6778.86 (Official Build) (64-bit)

@eastarpen
Copy link

eastarpen commented Dec 3, 2024

You may need refer to Map a key to different commands on different websites · gdh1995/vimium-c Wiki

Here is an implementation of your request

env youtubeVideo host="https://youtube.com/watch"    # define youtube env
# map l,h to right-arrow and left-arrow (most sites use these two keys to adjust video progress)
map l runKey expect={"youtubeVideo": "<right>"} keys="<v-l>"  
map h runKey expect={"youtubeVideo": "<left>"} keys="<v-h>"
# <v-l> and <v-h> help l,h work like defaulted in other sites
map <v-l> scrollLeft
map <v-h> scrollRight

@CouscousPie
Copy link

CouscousPie commented Jan 6, 2025

You can simply click on the browser extension symbol in your browser and then enter l behind the website click Save changes and are done. The real issue here is that the correct usage of exceptions and rules is not self-explanatory as a) the way the GUI looks makes it seem there is already a rule in place and b) the separation between Add rule and Save changes makes little sense in my eyes.

@kbilsted
Copy link
Author

kbilsted commented Jan 6, 2025

Perhaps standard mappings for major sites should be provided out of the box?

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

3 participants