This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-06
Channels
- # adventofcode (71)
- # aleph (1)
- # announcements (6)
- # aws (1)
- # babashka (27)
- # beginners (60)
- # biff (7)
- # calva (3)
- # clj-kondo (3)
- # clj-yaml (1)
- # clojure (60)
- # clojure-europe (43)
- # clojure-nl (3)
- # clojure-norway (75)
- # clojurescript (16)
- # code-reviews (7)
- # css (4)
- # cursive (47)
- # datascript (4)
- # events (5)
- # fulcro (37)
- # gratitude (5)
- # hyperfiddle (4)
- # introduce-yourself (4)
- # joyride (23)
- # juxt (4)
- # malli (4)
- # membrane (64)
- # nbb (8)
- # off-topic (12)
- # other-languages (6)
- # pathom (6)
- # polylith (9)
- # random (3)
- # rdf (66)
- # reitit (3)
- # releases (2)
- # shadow-cljs (18)
- # tree-sitter (10)
New release out, dear Joyriders, v0.0.27:
• https://github.com/BetterThanTomorrow/joyride/issues/115`src`https://github.com/BetterThanTomorrow/joyride/issues/115
• https://github.com/BetterThanTomorrow/joyride/issues/117
These are quite cool and changes, if I may say so myself.
• Now you can put your library code in src
and reserve scripts
for, well, scripts, making the Scripts menus easier to navigate as your scripts library grows. No more z_joylib
prefixing needed, and still littering down those menus. See Joyride Examples at the repo for how the new structure can look like.
• It turns out you have all this time been able to script using JavaScript. But now that's official and to suger it some we have made it so that you can reload your JavaScript code without restarting the VS Code window. You can actually hack pretty interactively with JavaScript this way. Maybe not so compelling, generally. But if you are going to solve Advent of Code problems with the help of ChatGPT, for instance, then JavaScript will work much better. See https://github.com/PEZ/joyride-aoc-2022 for a setup of using JavaScript to solve AOC problems. (I've not automated asking ChatGPT things and pasting it's answers, but I am considering that too 😄.)
And you can create functions in JavaScript if you need extra performance that SCI can't live up to currently and use them from SCI :)
hey all - still trying to figure out a way to de-emphasize comment blocks - curious if there’s a way to toggle opacity of commentFormType
live from joyride? (basicallly toggle the settings calva.highlight.commentFormStyle
would love to have a shortcut that let’s me set opacity to 1 or 0.1
You can update settings via the vscode api. And I think those settings are css. But I could be confusing that with something else.
thanks, will give it a try
I’m trying something like this but I keep getting maximum call stack exceeded - any ideas:
(defn toggle-comment-opacity []
(. (.getConfiguration vscode/workspace) update
"calva.highlight.commentFormStyle.opacity"
0.5
true))
Does the setting change? I think the error is something with when Joyride tries to print the return value.
I think it did one time - I’m not able to do it again though, maybe I need to have settings.json closed when I do it
no it’s not changing anymore - I thought it did one time but can’t seem to get it to do it right now
oh wait - it does work if I do it this way (which makes sense)
(.update (.getConfiguration vscode/workspace) “calva.highlight.commentFormStyle” #js {:fontStyle “italic” :opacity “1”} true)
I think if you set the final arg to true it updates the user settings
I need to figure out how to reload the windows - it doesn’t seem to run it consistenly every time
I need to trigger some kind of update - seems like almost any user action causes it to reparse that file but just setting the config doesn’t always do it
Yeah, it probably is a bit cool about re-rendering. See if editing the file and then undoing the edit works. Not saying that's a solution, just that it might work. 😃
This is awesome! My eMacs cofounder said it’s the first thing that’s made him VS Code envious :) - de emphasizing comments is huge for improving cognitive scan ability
Here’s a loom of how it works - I just press ctrl-alt-cmd-c to toggle comments being a bit darker. Makes scanning a file and seeing key symbols much easier: https://www.loom.com/share/5258a750bdc14a41a2264d4fbf2de425
Thanks for making these two awesome things!