Intellisense madness

Profile Anaysis via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Mon Jan 30 22:27:15 PST 2017


On Monday, 30 January 2017 at 19:36:37 UTC, Rainer Schuetze wrote:
>
>
> On 28.01.2017 04:08, Profile Anaysis wrote:
>>>
>>> Not sure what you mean by "ordered last". Least recently used?
>>
>> Well, if the names are alphabetically listed, which it looks 
>> as if it
>> is, then by using the characters(like z, or _, or ___, or 
>> whatever) to
>> prepend the names will put them at the end of the list. This 
>> will move
>> the "junk"(whatever you decide that to be, such as ufcs's) to 
>> the end of
>> the list.
>
> Visual D has full control over the order, so no workarounds 
> needed for that. I added an option to sort by type (default on).
>
> You can grab a preview build here:
> https://ci.appveyor.com/project/rainers/visuald/build/1.0.101/job/kgw7q005oqw4m5nf/artifacts


Cool, that is much better! Makes it useful to me now!

One more simple request! ;)

Could you "subsort" them based on inheritance? What I noticed for 
some of my objects is that I'm seeing the base class members 
interspersed with the members I added, e.g.,

class X {x}

class Y : x {y}

listing is

x
y

because the inheritance is flattened. But I'd rather see

y
x

because it shows the most relevant members(the ones I created) 
first, then the next relevant, and so on.

Probably adding a simple "is(A : B)" to your sorting compassion 
function would work. (e.g., if A is derived from B then list A 
first)

This isn't a big deal for small classes but for complex 
hierarchies one almost runs in to the same problem as before.

This may not be useful for all cases. If you can just check on 
the object being references, it would probably be better.



I have noticed a few other things:

1. I am used to hitting page down when the intellisense pops up 
so I can quickly scroll through the list a page at a time without 
having to take my hands off the keyboard. When I use page down in 
VD it scrolls the cursor. Not sure if it is possible to 
temporarily override/hijack the page down/up keys while 
intellisense is open. Down and Up keys work in intellisense 
correctly but they are slow to move. Would be better to also add 
the page keys and possibly home and end.

2. functions and variables in the list from different modules are 
intermixed. This isn't a bad thing since they are alphabetically 
sorted, but there is so much stuff in my list that it becomes 
less effective when I have to search for stuff.

I don't think sorting by module would be a good idea but maybe 
you could color code the names, if possible depending on what 
module they come from, or sort phobos entries to the bottom and 
color code them vs modules in the project.

I might try to implement some features at some point. I think I 
would like to get mago working better first though because I feel 
D's debugging is very poor at this point(sort of bare minimum). I 
just need to get it to compile ;)








More information about the Digitalmars-d-ide mailing list