Page 1 of 1

IDE - PB command list BY library

Posted: Fri May 04, 2012 6:30 am
by USCode
Often I know exactly which PB library I want to use a command from (Database, File, etc.), but can't think of the exact command name, so ...
Within the IDE source code editor it might be handy to have the ability to pop up a list of PB commands based not on the first few letters you have typed in, but by choosing a specific PB library from a list.

In a sense similar to the way AutoComplete works, except that you would perhaps enter a specific key-stroke combination which would then pop up a list of ALL the available PB libraries.
From that list you choose which library you want, it would then CASCADE to another list of all the PB commands IN that specific library only.
Just like with the AutoComplete list, you then choose which command you want and it's inserted into your code at the point where you hit the original key-stroke combination.

Alternatively, maybe it could be done from the right-click popup menu in the source code editor.
Right-click Menu > Libraries > (cascade to a list of PB libraries from which you choose one) > (cascade to a list of PB commands IN that library from which you choose one) --> inserts that PB command into your code.

Re: IDE - PB command list BY library

Posted: Fri May 04, 2012 9:20 am
by eesau
I just use the help file for this.

Re: IDE - PB command list BY library

Posted: Fri May 04, 2012 3:54 pm
by USCode
eesau wrote:I just use the help file for this.
The help file inserts the code into your source for you, like AutoComplete does?

Re: IDE - PB command list BY library

Posted: Fri May 04, 2012 5:03 pm
by eesau
No but Ctrl+C and Ctrl+V do :) Much faster than any cascaded menus.

It's not a bad suggestion though, could be useful.

Re: IDE - PB command list BY library

Posted: Fri May 04, 2012 5:58 pm
by USCode
eesau wrote:No but Ctrl+C and Ctrl+V do :) Much faster than any cascaded menus.

It's not a bad suggestion though, could be useful.
It's not just that, you also don't have to switch back and forth between the help file.
But the key point is you don't have to remember the command, you just bring up the library and choose the command.

Re: IDE - PB command list BY library

Posted: Fri May 04, 2012 11:06 pm
by MachineCode
Interesting request. I can see it would be handy.

Re: IDE - PB command list BY library

Posted: Tue May 08, 2012 12:56 am
by USCode
I'll try to throw together a prototype.

Any suggestions on how to get all the PB library names and associated commands ... without having to type them in manually! :shock:

Re: IDE - PB command list BY library

Posted: Mon May 14, 2012 5:03 am
by USCode
If anyone knows of a way to extract all the PB commands and the associated library either to a CSV or XML (or other), please let me know.
Thanks

Re: IDE - PB command list BY library

Posted: Mon May 14, 2012 9:13 am
by GoodNPlenty
USCode wrote:If anyone knows of a way to extract all the PB commands and the associated library either to a CSV or XML (or other), please let me know.
Thanks
This thread might be of help to you.

File format of the user libs ?
http://forum.purebasic.com/english/view ... 13&t=49874