Fork me on GitHub
#joyride
<
2023-05-05
>
alpox09:05:26

Thanks to joyride I now have keyboard shortcuts to easily move to the template, script and style part of .vue files 🎉 thanks for making joyride!

metal 2
pez09:05:08

Please consider adding it as an example on the Joyride repository.

alpox09:05:44

If I find the time I can prepare a PR the next days.

alpox09:05:34

Curently I have 4 scripts - 1 for each of the 3 different keyboard shortcuts and 1 script with common functionality. Is there a way to pass extra arguments to scripts invoked through joyride.runUserScript? If so I could combine it all into 1.

pez10:05:46

What I usually do is to require my functions in the user activation script and then use the command joyride.runCode to call those functions. There’s an example here: https://github.com/BetterThanTomorrow/joyride/tree/master/examples#lookup-current-symbol-in-clojuredocs

alpox11:05:37

Ah, perfect. Thanks 🙂

alpox11:05:10

Sidenote: The link to User activation.cljs and .joyride/scripts/clojuredocs.cljs are broken - probably these files don’t exist anymore. If you’d like I can create an issue after lunch

pez11:05:57

Please do!