This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-18
Channels
- # babashka (12)
- # beginners (35)
- # biff (6)
- # calva (23)
- # cider (7)
- # clj-kondo (10)
- # cljs-dev (15)
- # clojure (81)
- # clojure-dev (2)
- # clojure-europe (13)
- # clojure-germany (1)
- # clojure-korea (2)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-uk (7)
- # clojurescript (23)
- # core-typed (33)
- # cursive (7)
- # data-science (7)
- # datalevin (9)
- # hyperfiddle (1)
- # introduce-yourself (2)
- # malli (1)
- # matrix (17)
- # missionary (24)
- # music (1)
- # off-topic (15)
- # polylith (6)
- # reagent (10)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (3)
- # squint (7)
- # xtdb (11)
- # yamlscript (6)
Hey guys I need some help with a new Calva feature, does anyone know how to switch this feature off?
@pez does the inspector support color formatting using user settings.json? trying to find the right keys for the scope is a pita :melting_face:
It isn’t possible to syntax highlight the text in the tree view, only the color of the whole line. I have been considering to color each level the same color as the rainbow brackets would color it. Would that help?
So the question is if they have different capabilities? I’m guessing now in terms of syntax coloring. If so, then yes. The terminal supports coloring of the individual characters. The tree view does not. It does “support” coloring of the line, which we are doing, but all lines in the same color. Scare quotes because the coloring of the line is only by treating it as a file tree, but I am not one to not abuse an API for the greater good. 😃
It would be possible to color each row depending on the nesting level. So it would be a rainbow unfolding.
Found this, https://code.visualstudio.com/api/references/theme-color but its not there is it?
I tried to invoke a command to inspect, copy, or remove the currently highlighted individual inspector item, and these didnt seem to work. Is command expecting some kind of id?
The remove item command seemed to remove all items.
Hi! I was hoping you would explore this. 😃 Can you describe in a bit more detail how you are doing it? I think I may be able to make it work, but also maybe not, because I failed a bit when trying to support it in the initial version.
Im using the Talon voice system to bind a lot of regularly used commands to voice phrases (for convenience. I’ll post code later, but was trying to run commands that would act on an individual inspector item. Ill try again, but they didnt seem to be working. I invoke the commands from Talon, which is a python orocess, but they are executed in vscode via an rpc mechanism via a vscode extension. With that I can call a vscode command, with or without input.
Btw today with this system i was able to run repl snippets directly as (escaped strings), thereby passing in (spoken) variables to clj code via string interpolation, and the repl snippet substitution vars still worked! Kind of hacky but it works! I had tried this weeks ago and hit a wall and thought it wouldnt work. With this i was able to for example define a list of portal viewer names in Talon, make a voice command that can use the names, constructs a stringified repl snippet, and runs it via calva vscode command, to in effect change the portal viewer of the value i’m looking at. So one snippet becomes a heterogeneous command, of the tip of the tongue, no need to restructure my working code or dig around ui!
Totally awesome. Let’s make the inspector voice command friendly! Btw, @UEFE6JWG4 also uses Talon, I think.