You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to open the diff window for a failed test using the keyboard.
Related discussion from Slack:
onetom 12:59 PM
is there a shortcut key for showing the diff window for a test failiure?
since it's not printed anywhere i keep have to hover and quickly aim the Show difference... link in the popping up bubble
it's not very productive 😕
i would rather see the error messages in the repl window, instead of just the test run summary
the diff of course can't be shown that intelligently as the IDEs diff window, so i wouldn't expect that in the REPL output, but at least there should be a key shortcut for it.
btw, im using cmd-f1 for showing the error popup, so it's not really convenient to reach for the mouse afterwards, just to show the diffs too (edited)
cfleming:cursive: 4:25 PM @onetom There isn’t, but you’re right, there should be. The easiest way to show the diff is to click on the gutter icon on the left, but you’re right, it needs a key.
👍:skin-tone-5:
1
8 replies
onetom 4 days ago
i haven't realized that icon is clickable.
that's already one action less, so it helps, thanks!
it's easy to misclick it though and place a breakpoint instead, accidentally.
onetom 4 days ago
Not sure what would be a good shortcut for it.
Cmd-D is the default in other tool windows for showing diff, but in the editor it's duplicate line or selection, which is quite important. At least I use it all the time...
Cmd-D — Duplicate Line or Selection
Cmd-Shift-D — Smart Search Documentation in Dash
Cmd-Opt-D — [macOS] Show/Hide Dock
Cmd-Ctrl-D — [macOS] Dictionary Lookup
I guess Cmd-Shift-D is a good candidate, since it's only taken when the Dash plugin is installed.
Shall I make a github issue about this or no point?
cfleming:cursive: 4 days ago
Perhaps it could be an intention - “Show diff for error”, only available when actually on an error marker.
cfleming:cursive: 4 days ago
Yes, an issue would be good, thanks.
cfleming:cursive: 4 days ago
The intention would mean you’d just use alt-enter.
👍
3
Mark Addleman 4 days ago
The fewer magic keys I have to remember the better 🙂
cfleming:cursive: 4 days ago
Yeah, I like intentions for that, and also for being context-sensitive.
👍
1
The text was updated successfully, but these errors were encountered:
The keyboard shortcut would be handy to workaround a bug when the test failure gutter can't be clicked. Whether the REPL is run in debug mode or not Cursive tries to insert a breakpoint instead of showing the diff. It doesn't happen all the time but quite often.
The pop-up summary is there (on hover) but reading it can be a challenge if it shows a map or something longer. The test result summary is not in the REPL so in that case the only workaround (I know of) is to select everything in that popup, paste it into a clj scratch file, manualy edit it and then run both outputs through clojure.pprint.
I injured my hand the other month and needed to use the keyboard exclusively - this issue was the only thing in cursive that does not work keyboard only. Would be really nice to get fixed!
Currently it's not possible to open the diff window for a failed test using the keyboard.
Related discussion from Slack:
The text was updated successfully, but these errors were encountered: