Fork me on GitHub
#cursive
<
2023-06-13
>
d5p04:06:49

just wondering if any thoughts/progress might've been made related to this https://github.com/cursive-ide/cursive/issues/1212 , i.e better support for navigating protocol implementations etc

cfleming07:06:00

It’s definitely something I’d like to get to soon. I’m working on another pretty big change, I’ll take a look afterwards to see what’s involved.

cfleming07:06:59

It’s also related to something which regularly annoys me, which is that the implement methods stuff is pretty buggy, and doesn’t work at all for protocols.

d5p08:06:20

ahh thanks that's good to hear! that combined with improving refactoring support are basically our 2 biggest pain points

cfleming09:06:56

Any particular refactorings?

d5p10:06:56

i think this issue is probably related to the main thing that gets me almost every day https://github.com/cursive-ide/cursive/issues/621 - i often drag a namespace file to a new package and rename it while i'm at it, and it fails to update the namespace with the package name , and https://github.com/cursive-ide/cursive/issues/817 would of course be incredibly useful 🙂

cfleming10:06:36

Ok, I also have those on a shortlist, after the recent(ish) namespace changes which should make that all possible.

d5p10:06:50

ahh amazing, thanks!

Rachel Westmacott16:06:18

Would it be easy to make urls in Strings crtl+clickable (like urls in comments already are)? It provides an incentive to move links out of docstrings atm to make them more clickable.

6
cfleming09:06:03

I’ll have a look at that, the comment feature is not something that Cursive does explicitly, it’s done by IntelliJ automatically.

cfleming10:06:00

Are the links that work for you in comments specifically for issues, or general URLs?

Rachel Westmacott10:06:07

I think anything that starts 'http' in a comment if I hold down 'Ctrl' and hover over it with the mouse it styles like a link and I can click on it

cfleming10:06:38

Yeah, playing around with it it seems to be general. The code I’ve found specifically references issue links, I’ll keep digging.

Rachel Westmacott10:06:25

seems like it has to start with http:// or https:// . file:// didn't seem to work

serioga12:06:21

In Java/JavaScript links are clickable in string literal as well.

cfleming20:06:44

Thanks, I’ll see if I can figure out how that works.

cfleming00:06:48

I’ve spent some time tinkering with this, but I can’t make it work, sorry. It should be easy, but is not. I’ll come back to this later.

cfleming01:06:00

Of course, it’s always trivially easy when you know how. https://github.com/cursive-ide/cursive/issues/2804, will be in the next build.

🆒 2
😆 2