AutoComplete with filter

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

AutoComplete with filter

Post by A.D. »

Hi there !

Could the AutoCompletation have the feature to show only the constants which belong to the current command? Maybe it means much work but
i think it would be worth doing it.

Greets
A.D.
Repeat
PureBasic
ForEver
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: AutoComplete with filter

Post by skywalk »

The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: AutoComplete with filter

Post by Josh »

This idea i posted two years ago

http://www.purebasic.fr/english/viewtop ... =3&t=42480

For my own procedures and interfaces i use the the following workaround:

Code: Select all

Macro bEnum (Dummy) : b : EndMacro
Macro wEnum (Dummy) : w : EndMacro
Macro lEnum (Dummy) : l : EndMacro
Macro qEnum (Dummy) : q : EndMacro
Macro iEnum (Dummy) : i : EndMacro
Macro sEnum (Dummy) : s : EndMacro


Enumeration
  #xyz_test1
  #xyz_test2
  #xyz_test3
EndEnumeration

Procedure ProcTest (Par1.iEnum(#xyz_))
  ;............
EndProcedure


ProcTest (...
Especially when i use pbi-files I often don't know which constants can be set. So I write a enum, where all constants start with specific characters. When i call the procedure, I see in the last line of the ide, which constants can be set.
sorry for my bad english
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: AutoComplete with filter

Post by Danilo »

Before adding a filter, I would like to resize the autocomplete popup window, as it's way too small in width.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: AutoComplete with filter

Post by c4s »

Danilo wrote:I would like to resize the autocomplete popup window, as it's way too small in width.
"Preferences" -> "Auto Complete" -> "Box width" :wink:
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: AutoComplete with filter

Post by Danilo »

c4s wrote:
Danilo wrote:I would like to resize the autocomplete popup window, as it's way too small in width.
"Preferences" -> "Auto Complete" -> "Box width" :wink:
Thank you very much! :D

I tried to resize the popup window with the mouse. Would be more comfortable IMO, but it's OK now.
Post Reply