-
Notifications
You must be signed in to change notification settings - Fork 160
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
Add "Trigger another shortcut" action to have multiple ways to trigger the same shortcut #93
Comments
Currently there's no way to do that, but we could add a "Trigger other shortcut" action I suppose. Can I ask what the use case is? Like, why do you want 2 different ways to trigger the same shortcut? |
Typically I want to do this in other applications where I use the keyboard differently for different situations. The most common is in SQL Server Management studio. If I'm holding the mouse to select text I might use the F5 key to execute, otherwise I use the CTRL+E shortcut. |
The original case is that i have multiple jQuery queries for a websites (submit buttons on different pages) in one big function. The need for different shortcuts for same functionality is that i'm used to different shortcuts used in other enviroments (like linux When i adding new part of a function or adding a new shortcut with same func, i'd need to copy whole updated function to different shortcuts every time i change something. @mikecrittenden If i understand well, You suggest to add Trigger another shortcut from "Behavior" menu. I'd suggest to also allow triggering it from within the Js code to be more flexible and cover use case like @sterbalr well described. |
Good point @ambrt. That seems possible. I was hoping you could just call |
That would be great. Keep us in the loop about it! |
I pushed 10ae3f5 which does the following: What do you all think of that? Obviously it's a little awkward that the text field is super wide, but otherwise, is that kind of what you had in mind? |
I wouldn't mind the width issue. Will you push it to chrome store? It looks good to me. |
Pushed to v2.2.5 and uploaded to webstore. Thanks! |
I have "ctrl+ernter' shortcut, how can i trigger it from 'alt+enter' without copying one to other?
The text was updated successfully, but these errors were encountered: