Fork me on GitHub
#cursive
<
2019-08-31
>
onetom04:08:58

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

cfleming08:08:02

@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.

4
onetom08:08:02

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.

onetom08:08:09

I've just checked and it's even documented on https://cursive-ide.com/userguide/testing.html I should be more thorough reading docs!

onetom08:08:31

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?

cfleming09:08:18

Perhaps it could be an intention - “Show diff for error”, only available when actually on an error marker.

cfleming09:08:26

Yes, an issue would be good, thanks.

cfleming09:08:41

The intention would mean you’d just use alt-enter.

👍 12
Mark Addleman13:08:56

The fewer magic keys I have to remember the better 🙂

cfleming20:08:54

Yeah, I like intentions for that, and also for being context-sensitive.

👍 4