Jump to content
Edwin Yip

[Suggestion] right click on a hyperlink in the source code to give a popup menu item for "Visit Link"

Recommended Posts

Perfectly, like the attached screenshot of the "Follow Link" feature of visual Studio code (provided by Warreñ Postma on Facebook)

 

Thanks.

 

VSCodeFollowLink.jpg

  • Like 1

Share this post


Link to post
3 hours ago, edwinyzh said:

Perfectly, like the attached screenshot of the "Follow Link" feature of visual Studio code (provided by Warreñ Postma on Facebook)

VSCodeFollowLink.jpg

Unfortunately there currently is no code in GExperts to react to mouse events in the editor (at least I'm not aware of any). So this would not be a simple extension based on existing mechanisms, but has to be done from scratch, possibly different for all supported versions and tested accordingly.

Feel free to file it as a feature request, but don't hold your breath.

 

Did you submit it as a feature request to embarcadero? They would have it much easier to implement it.

Share this post


Link to post
10 minutes ago, dummzeuch said:

...Feel free to file it as a feature request....

 

Did you submit it as a feature request to embarcadero? They would have it much easier to implement it.

I'm already doing it here, right? :)

They posted the suggestion on the Delphi facebook group already, and I thought GExperts might be able to do it, so my report here. I don't want to upgrade Delphi always, so I'm not very enthusiastic to do that :)

Share this post


Link to post
1 hour ago, edwinyzh said:

I'm already doing it here, right? 🙂

They posted the suggestion on the Delphi facebook group already, and I thought GExperts might be able to do it, so my report here. I don't want to upgrade Delphi always, so I'm not very enthusiastic to do that 🙂

Please file a feature request on sourceforge if you think it important enough.

Share this post


Link to post
On 12/12/2019 at 5:12 AM, edwinyzh said:

"Follow Link" feature

Brilliant idea!

 

Of course, it should also resolve this kind of URLs:

 

image.png.a6c14edbd9833517dd645c8ad245f3f2.png

 

... of course, opening this link in File Explorer.

Edited by PeterPanettone

Share this post


Link to post
32 minutes ago, PeterPanettone said:

Brilliant idea!

Also, this kind of URL resolution would be very useful:

 

image.thumb.png.3ac6645e7db5483d739ae8bf0f24b7eb.png

 

This would execute MyApp.exe and pass the current unit file as a parameter.

Share this post


Link to post
42 minutes ago, PeterPanettone said:

Also, this kind of URL resolution would be very useful:

 

image.thumb.png.3ac6645e7db5483d739ae8bf0f24b7eb.png

 

This would execute MyApp.exe and pass the current unit file as a parameter.

You can already configure a Tools menu entry to do that.

Share this post


Link to post
Just now, dummzeuch said:

You can already configure a Tools menu entry to do that.

I know, but I just wanted to expand on the possibilities of different future URL types in source code comments.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×