Bug 239867 - Can't sort items in outline toolbar element
Summary: Can't sort items in outline toolbar element
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 15:48 UTC by Tamás Gere
Modified: 2014-04-29 09:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Outline element with many functions. Its quite a chaos, isn't it? (76.58 KB, image/png)
2010-05-28 15:48 UTC, Tamás Gere
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamás Gere 2010-05-28 15:48:15 UTC
Created attachment 47425 [details]
Outline element with many functions. Its quite a chaos, isn't it?

Version:           SVN (using KDE 4.4.3) 
OS:                Linux

If there is like 2000+ lines of code which containing many functions and/or objects then a sortable 'outline' selector would be very useful.

Element screenshot attached to specify.

Reproducible: Didn't try



Expected Results:  
I imagine a switch (button) for unsorted (as now) or ABC sorted functions/objects listed in the element.
Comment 1 Andreas Pakulat 2010-05-28 18:12:16 UTC
There's a reason for that edit-field. The point of the outline list is not to select from a few thousand functions, but to show what the text you type into the edit field matches. This way you can easily reduce the amount of shown items to a handful.
Comment 2 Tamás Gere 2010-06-01 17:46:56 UTC
Yea, i know this, but for me the sorted list can be even faster to browse then switching between mouse and keyboard. I miss this, because all IDE knows among those which i used before.
Comment 3 Alexey Shildyakov 2014-04-28 13:31:23 UTC
I'm also interested in this function. oues this so difficult to implement?
Comment 4 Milian Wolff 2014-04-29 09:01:19 UTC
Its not difficult to implement at all, it just isn't useful for the current contributors. The outline should, well, outline the document structure as-is. We assume you sort the functions in the body in a meaningful way.

For me personally, a sorted list would break horribly. Suddenly e.g. "Bar::foo and Bar::setFoo" would not be next to each other in the list.

Anyhow, you could implement this analogously to the different QuickOpen modes and then we could have a second shortcut to show a sorted outline. This you can use then, and we can keep the current mechanism in as well.