This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-07
Channels
- # announcements (1)
- # beginners (123)
- # calva (17)
- # clj-kondo (16)
- # cljfx (1)
- # cljs-dev (4)
- # clojure-austin (1)
- # clojure-conj (1)
- # clojure-europe (28)
- # clojure-nl (3)
- # clojure-norway (25)
- # clojure-sweden (8)
- # clojure-uk (6)
- # conjure (4)
- # datahike (30)
- # datalevin (2)
- # datomic (2)
- # docker (4)
- # events (1)
- # fulcro (6)
- # graalvm (9)
- # gratitude (1)
- # honeysql (7)
- # hyperfiddle (29)
- # introduce-yourself (2)
- # jobs (2)
- # off-topic (18)
- # pedestal (5)
- # reitit (3)
- # releases (3)
- # remote-jobs (3)
- # scittle (18)
- # shadow-cljs (31)
- # tools-build (44)
- # tools-deps (10)
Is there a reason there are options to auto-open the jack-in terminal and the REPL window but not the output terminal?
Only reason is that auto-opening a terminal means hiding another terminal. I didn’t know how to solve that in a backwards compatible way.
So you could either open the jack in terminal or the output terminal? I tend to drag the output terminal to the top-right and the jack in terminal to the bottom-right (and not have any terminals "below"). There's no way to force terminals to open that way (like editors), right?
The mechanism involved is that of a reveal rather than opening. There may be some way to force the split, but I somehow doubt it.
Could you do a runCommands script to jack-in, wait, then move terminals. I do this to at least jack in with the output terminal “moved to tabs”
Probably. It's a matter of how much effort I want to put into avoiding the other effort:grin:
Can you share your runCommands snippet for this, @U09D96P9B?
Here is my Talon voice script (witch is run outside vscode)
user.vscode("calva.jackIn")
sleep(2000ms)
user.vscode("calva.showOutputTerminal")
sleep(300ms)
user.vscode("workbench.action.terminal.moveToEditor")
sleep(200ms)
user.vscode("workbench.action.moveEditorToRightGroup")
sleep(200ms)
user.vscode("workbench.action.closePanel")
so in vscode runCommands would be something like this
{
"command": "jackInWithOutputTab",
"key": whatever keybinding
"args": {
"commands": [
// commands to run in sequence
"calva.jackIn",
"calva.showOutputTerminal",
"workbench.action.terminal.moveToEditor",
"workbench.action.moveEditorToRightGroup",
"workbench.action.closePanel"
]
}
}
But I don’t know with that internal mechanism in vscode would be to insert necessary timeouts between those actions.
I agree it would be nice to have this built in
As long as the commands return the promises properly, runCommand will not run the next command before the previous one is done.
Interesting. They were necessary for me because was joining those commands outside runCommands
The preferences for how things should be arrange vary between every coder, so I don’t know how to make anything of it built in.
Yeah, probably. That is the declarative syntax, but you can use python also. Or in this case, it’s executing through some vscode extension js via rpc.
Might need more involved actions to find and arrange multiple terminals (by name?)