Is there any way to put links inside the source code?

I am just curious: Is there any way to put links inside the source code? I always have “chains” hanging through my code somehow. I would like to drag any part of the left tree pane into the source pane and have a link there into that selected variable, module or container. If I click there it should open the selected item, may be in another tab. That would help me a lot to hangle through my spaghetti :zany_face:

I do not know if this is possible yet or not. Thanks!

1 Like

On Windows, try keep pressing down the left STRG-Key and doble click on the “item” in the Code.
On Mac i think, it’s the CMD-Key and a double click on the “item” in the code.

In the IDE-Settings on the Navigator-Tab, activate “Double click opens item in new Tab”

2 Likes

You can also right-click on variables or method names in your source code and there’s a contextual menu item to go to definitions.

1 Like

I know, I can jump to methods etc. - but this was not my intention. It would be more like bookmarks, reachable not with the bookmark-list but with a link. In fact bookmarks would help, but they build no “chain” by themselves. If you could jump to a bookmark from “inside” the code … :smiling_face_with_three_hearts:

I.e. if you have alwas the same 10 methods to walk through (checking) while coding - you could put links behind and jump from one to the next (in order). Like notes in Obsidian, links forward and backward, like in the toolbar.

May be if you could sort the bookmarks and then jump back and forward with them? But real links would be better, because they could build a (visible !?) tree …

Make a Feature Request :wink:

1 Like

If this is really an issue also others are interested in? I judt did not know if something like this already exists.

2 Likes

You could of course start a survey first, but I would just create a FR. :laughing:

Sorry, but it’s Friday and I’m already mentally in the weekend :wink:

i believe #Pragma Warning “Some Text” can be listet and in the list you can jump to the source code row.
very useful if you work at many places or made notes to continue later.

1 Like

I remember suggesting in another thread that Xojo should support it’s own URI scheme.

For example xojo://examples/dbkit should open xojo, display examples and select dbkit.

Your idea for in-line bookmarks could be very useful.
The way I see your idea implemented is also through the Xojo URI Scheme:
xojo://current_peoject/class1/method1

And dragging any class/method/property into the code editor would automatically make a link

5 Likes

I would be interested in it. Right now I either use bookmarks or I pick a random word and leave myself a comment telling me to search for that word.

//search #elephant for this snippet

Best point would be: You could jump BACK and FORWARD between panes of code. This is what bookmarks can not do today.

Nice idea for itself, did not know that. It jumps to properties, nice.

What I would like is to jump to a place INSIDE the code, even in the same method. Or back and forth …

This is currently not possible. But you can make a feature request and if enough people put a :+1: on it, it may get implemented one day. :slight_smile:

1 Like

I am a nobody at Xojo and (up to now) I did not get the feeling that there is a chance to get anything done. May be @Jeremie_L or @Anthony_G_Cyphers could ask …

Anyhow, thanks for the response!

I’m also probably a nobody who has submitted multiple asks and bugs for Linux a platform no one cares about for the most part here in the forums. Mac seems to be the #1 platform here.

Xojo seems pretty friendly and responsive to me! You can’t build a relationship if other people do your interactions!

I think this is a really interesting idea. Please create an Issue for it.

1 Like