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

Commands like (Tab Left, Tab Right, Close Tab, New Tab) are slower than built-in shortcuts #7

Open
johngkhs opened this issue Nov 11, 2024 · 1 comment

Comments

@johngkhs
Copy link

johngkhs commented Nov 11, 2024

I changed the double press delay to 0, but the tab related commands appear quite a bit slower than the built-in keyboard shortcuts on my machine. For example, command-T opens a new tab instantly, while t opens a new tab after ~500ms. In contrast, h/j/d/u are instantaneous through vifari. Is this a known limitation or is there a way to get t to open a tab as fast as command-T?

@johngkhs
Copy link
Author

Found the fix for this one:

      hs.eventtap.keyStroke(foundMapping[1], foundMapping[2], 0)

http://www.hammerspoon.org/docs/hs.eventtap.html

hs.eventtap.keyStroke(modifiers, character[, delay, application])
delay - An optional delay (in microseconds) between key down and up event. Defaults to 200000 (i.e. 200ms)

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

1 participant