This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-27
Channels
- # announcements (10)
- # beginners (95)
- # biff (2)
- # calva (33)
- # cherry (1)
- # clj-kondo (16)
- # clojure (96)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (42)
- # clojure-filipino (1)
- # clojure-france (2)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-sg (11)
- # clojure-taiwan (1)
- # clojure-uk (1)
- # clojurescript (21)
- # cursive (22)
- # data-science (3)
- # events (7)
- # fulcro (3)
- # graalvm (4)
- # gratitude (6)
- # helix (11)
- # honeysql (7)
- # hoplon (1)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (16)
- # lsp (15)
- # malli (14)
- # nbb (73)
- # practicalli (3)
- # reagent (8)
- # reitit (5)
- # releases (1)
- # ring (5)
- # rum (3)
- # sci (17)
- # scittle (7)
- # shadow-cljs (22)
- # tools-deps (26)
- # xtdb (9)
Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.311 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1914 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1918 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1916 • Calva development: https://github.com/BetterThanTomorrow/calva/issues/1913 • Bump deps.clj to v1.11.1.1182 Thanks @sayagantengtq11, @stefan.van.den.oord, @max.r.rothman and others for helping with finding and fixing things! ❤️ 🙏

Not sure if this is a Calva Q or a more general VS Code Q (probably the latter): if I press ctrl+a
to select all, is there a way to unselect everything and have the cursor stay where you were before the select? It seems like ctrl+a esc
jumps you to the end of the file. Never mind, just answered my own Q (and so I'll post it anyway in case it's useful to anyone else): ctrl+a
<do action on everything> alt+left
If the <do action on everything> does not edit the the file, Undo Selection should be what you are looking for. If it edits, then you are out of luck, I think. (Even though you seem to have found some way to do it...)
I don't see that command. I see Cursor Undo which... doesn't seem to do anything intuitive 👀
alt+left
works: moves the cursor back where it was and undoes the selection.
What's the easiest way to discover that? I can never remember...
I meant Cursor Undo, btw. 😃 I use it all the time. To evaluate the ns form and get the cursor back to where it was: cmd+up
, ctrl+enter
, cmd+u
.
Not sure what the Windows equivalent to cmd+up
would be (since win+up
moves native windows around!
Probably something involving the home
button. The commandId is cursorTop
, so you can search keyboard shortcuts for it.
alt+left
is Go Back. Although Calva also has it bound but I don't seem to satisfy the "when" for that I guess?
Supposedly ctrl+home
should do it... but it doesn't work for me on Windows.
I have Go Back on ctrl+-
, thought that was the case on Windows too. In any case Cursor Undo is what you want. Go Back has different semantics. There is Go Forward too, which is nice.
paredit.openList
perhaps? That's also bound ctrl+home
for me.
What does paredit.openList
even do??
alt+home
=> paredit.openList
-- and now ctrl+home
goes to the top of the file -- thank you!
I've taken to using ctrl+a ctrl+enter
as a way to re-eval every form in a file instead of ctrl+alt+c enter
since it shows me all the Vars as they are def
'd along with specific errors for any that fail to re-eval. This is particularly nice with Portal and its middleware so I get output like this (instead of just an error message in the REPL window -- which I have hidden normally):
Meanwhile you could use Joyride for this:
{
"command": "joyride.runCode",
"args": "(promesa.core/do (vscode/commands.executeCommand \"editor.action.selectAll\") (vscode/commands.executeCommand \"calva.evaluateSelection\") (vscode/commands.executeCommand \"cursorUndo\"))",
"key": "ctrl+alt+c enter",
}
Hmm, good point. If I get tired of mashing those keys, I might. But I find ctrl+a ctrl+enter
easier than ctrl+alt+c enter
and I don't always need to "undo" my last selection, depending on what I'm up to.
Hahaha... OK, I bound ctrl+u ctrl+u
to UPPERCASE (and ctrl+l ctrl+l
to lowercase) so now I can't use ctrl+u
on its own 😐 So. Many. Commands!
I use it often enough to want it bound to hot keys 🤷:skin-tone-2: Fixed now. ctrl+c ctrl+u
and ctrl+c ctrl+l
for that, and now I have ctrl+a ctrl-enter ctrl-u
back -- thank you!
Doh! ctrl+c
is a terrible chord prefix... now I can't copy anything! Avoiding collisions is hard. ctrl+alt+u
(twice) and ctrl+alt+l
(twice) seem safe... he says, hopefully...