This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Replies: 1 comment
-
I have a working solution.
The only downside is the last step. I can’t work out how to dispose of an old command once you’ve lost track of the disposable variable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From time to time I need to do some work on an existing file which requires some JavaScript. Currently I open the developer tools and enter something like this:
which would wrap selections with square brackets.
I then make one or more selections in the document, go to the console, up-arrow and re-run the second line above.
The actual task is not important. The question is how can I either assign some JavaScript to a keyboard shortcut, or some other instant action. Is there a package I can install for this? I have installed command-toolbar, so maybe that can help.
Beta Was this translation helpful? Give feedback.
All reactions