Dear Calva friends: calva https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.608 • Fix: https://github.com/BetterThanTomorrow/calva/issues/3327`targetRuntimeId`https://github.com/BetterThanTomorrow/calva/issues/3327
I'm trying out the new output view, and so far, I'm liking it! A few small pieces of feedback: • My custom keybindings for paredit selection commands don't seem to work in the output view. The commands work through the palette, just not the keybindings • I tried to use the https://github.com/BetterThanTomorrow/calva/issues/3307, and despite turning on both of the settings mentioned in that issue, I can't seem to get the input UI to show up
Is that setting for the input box or the entire output view? I was trying to use these keybindings in the output view on the output of an evaluation
I had the setting entered wrong, that was my fault!
calva.outputViews.replInputCommandKeys should be for the entire view. So hopefully just that the copy is outdated.
> It’d be nice to have code available for large outputs I don’t understand.
Sorry, typo. It'd be nice to have folding available for large inputs & outputs
> • large outputs seem to not be syntax-highlighted Correct. I don’t recall where we draw the line, but at some point we draw it.
> It also would be nice if thrown ex-infos had their ex-data shown I’ll have a look at this.
Hm, replInputCommandKeys doesn't seem to be working for me. Here's my settings.json:
"calva.outputViews.replInputCommandKeys": [
"shift+alt+right",
"shift+alt+left"
],
And my relevant keybindings:
{
"key": "shift+alt+right",
"command": "paredit.selectForwardSexp",
"when": "!calva:cursorInComment && calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "shift+alt+left",
"command": "paredit.selectBackwardSexp",
"when": "!calva:cursorInComment && calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},In the input or both?
both
Could be that you’ll need some when clause on the bindings too. See what the default bindings have.
aha, that was it
Update on ex-data: it does seem to show up, but for some exceptions but not others, I'll try to suss out what the causes are. It would be nice though if ex-data was formatted and navigable like code
Keybinding works? Both input and output? (if so: What did you do to make it work? 😃 )
I copied the whens on the default keybindings to my custom ones, now it works in both the input and output views
Great. Can you confirm that the replInputCommandKeys are needed? (Should be, but anyway.)
The setting does not seem to be needed
Interesting. But very good if it holds true.
I think that for now you’ll need the replInputCommandKeys , because the reason we have them is to know what to stop CodeMirror from handling. So without the setting it’s a bit of race.
Sorry, 2 more small things: • It'd be nice to have code available for large outputs • large outputs seem to not be syntax-highlighted
Not sure if this is a regression or just an edge case I've never noticed before: I have configured a bunch of aliases for Calva to offer when it jacks-in. Some of those have :main-opts but in the selection popup, they are not flagged as having main opts. Only aliases in the project itself are flagged as having main opts. This means you cannot jack-in using a global (user-level) :repl or :serve alias for the new CLI REPL, because Calva doesn't see the :main-opts and then adds -m nrepl.cmdline which the CLI REPL rejects (because it already has its main opts and only allows qualified symbols after that).
I don’t think it’s a regression. We don’t read global aliases, only use the list you provide. We could consider supporting objects in that list. {"name"; … "main-opts" true} something.
Ah, that might be nice. I'll create an issue.
Oh one more thing: it'd be nice to have a way to jump to the bottom of the output window, especially if you've scrolled up and there's lots of long outputs. My normal "cmd+down" shortcut doesn't work because it only scrolls to the bottom of the block you're in
If you click in outside a code block, cmd+down should work.
Good to know. It'd e nice to have a mouse-free way to do it. Maybe like with notebooks, escape could put focus outside the block?
plus_one Would be nice to have a command that doesnt require focusting the output window. Because often i dont want to lose my place in a code file. This came up before in an earlier thread. Currenty i have a batch command that focues output view, jumps to bottom, and then goes back to editor”. But it can be a bit flaky.
Dear Calva friends: calva https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.609
• https://github.com/BetterThanTomorrow/calva/issues/3331
• https://github.com/BetterThanTomorrow/calva/issues/3330
• Fix: https://github.com/BetterThanTomorrow/calva/issues/3332
• Ouput views: Make ex-data in error output Clojure code blocks (supporting navigation, folding, etc)
• Output views: Make escape exit navigated output, allowing for keybindings to scroll the view.
• Output views: Add command for scrolling to bottom: calva.scrollOutputViewToEnd
• https://github.com/BetterThanTomorrow/calva/issues/3334
Thanks, @malaingreclement, @max.r.rothman, @chromalchemy for quick and awesome feedback on the output view changes and repl input. It’s great when releasing new, big, changes to get this kind of immediate response and guidance. ❤️ 🙏 calva