IDE - PB command list BY library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

IDE - PB command list BY library

Post 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.
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: IDE - PB command list BY library

Post by eesau »

I just use the help file for this.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: IDE - PB command list BY library

Post 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?
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: IDE - PB command list BY library

Post 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.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: IDE - PB command list BY library

Post 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.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE - PB command list BY library

Post by MachineCode »

Interesting request. I can see it would be handy.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: IDE - PB command list BY library

Post 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:
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: IDE - PB command list BY library

Post 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
GoodNPlenty
Enthusiast
Enthusiast
Posts: 112
Joined: Wed May 13, 2009 8:38 am
Location: Arizona, USA

Re: IDE - PB command list BY library

Post 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
Post Reply