XIDE help - was: Hint to find the source of a runtime function?

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Hint to find the source of a runtime function?

Post by Chris »

Hi Karl,

Right, I had completely forgotten about this! Will look into it in the next days.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

Hint to find the source of a runtime function?

Post by Karl-Heinz »

Guys,

another kind of GitHub search ;-)

Replace in XIDE the "Tools -> "Preferences" -> "Advanced" -> "Search engine URL" setting with:

Code: Select all

https://github.com/X-Sharp/XSharpPublic/search?q=%22function+%value%%22
When you double-click a function name and right select "Search web for selected Text"
the Github search starts with the word "Function " + the selected text.

How about a XIDE PopUp menu enhancement ?

Search Github for Selected Text
Search Github for 'FUNCTION ' + Selected Text
Search Github for 'METHOD ' + Selected Text
etc.
etc.
...
:-)

regards
Karl-Heinz
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Hint to find the source of a runtime function?

Post by FFF »

Karl-Heinz,
problem is, if you do this the search for NON-Git content won't work anymore.

I'm confident, Chris will come with a generic solution ;)
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post by wriedmann »

Hi Karl,

Karl-Heinz meant a new function - other 3 entries in the XIDE context menu. That could be easily written in a XIDE plugin.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Hint to find the source of a runtime function?

Post by Chris »

Haha that was a smart way to do it Karl-Heinz, would never think of it myself! But yeah, as the guys said it is better if I will take care for it internally.

Actually this context sensitive help search did work properly in the past, but was using the vulcan help file :) (if you have vulcan installed, press SHIFT+F1 on a keyword, it will still open the topic for that keyword in the vulcan help file). Need to remap everything now, to the X# help file or online documentation. Or maybe both with an option...
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post by wriedmann »

Hi Chris,
if you could to that, I would like it.
Otherwise I was thinking about implementing it in my plugin (and sharing it of course).
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

Hint to find the source of a runtime function?

Post by Karl-Heinz »

Hi Chris,

Yeah, when it´s possible to open with Shift+f1 the associated help description, the [view sources] button does the rest ;-). Whereby it´s even possible to add the line number where the func starts. I saw that in earlier X# help files, but i think it´s not easy to keep in sync, because every changes made changes the position of each function header within a prg.

https://github.com/X-Sharp/XSharpPublic ... S.prg#L282

regards
Karl-Heinz
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post by wriedmann »

Hi Karl-Heinz,
I would not implement this as Shift-F1 replacement, but put in rather in the context menu.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

Hint to find the source of a runtime function?

Post by Karl-Heinz »

Hi Wolfgang,

it´s not about my first post and not about a SHIFT+F1 replacement. It´s about the possibility that in XIDE the keys F1 or SHIFT+F1 open the X# help. When i click on the word "Right" and press SHIFT+F1 the X# help should open and jump to the description of the function Right(). According what Chris said, it does work with a VN Help file.

regards
Karl-Heinz
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Hint to find the source of a runtime function?

Post by FFF »

Exactly.
BTW, @Chris: you might consider swapping F1 and Shift-F1 - i think, we look a lot less often into Xide's help as otherwise ;-)
I know, it's contrary to "the rule", but in the end lazyness wins...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Post Reply