Bug 385228 - alphanumerical vs. unsorted ordering in outline navigator and open file dropdown menu
Summary: alphanumerical vs. unsorted ordering in outline navigator and open file dropd...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: git master
Platform: Compiled Sources All
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-30 10:34 UTC by RJVB
Modified: 2022-12-10 05:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2017-09-30 10:34:21 UTC
I'm a firm believer in (the benefits of) spatial memory and find myself handicapped in using the outline navigator (and to a lesser extent, the open file drop-down menu).

Most of the time I will have a better idea of where in a file I'm going to find a piece of code I want to jump to than the name of the nearest method declaration. This is especially useful with files containing lots of methods and other listed "landmarks". When it lists items in file-order (= unsorted) one can scroll the outline drop-down to a rough estimate of the position in the file, and only then start reading. This is much faster for me than having to read all listed text to find what I'm looking for, esp. when it is often in a completely different location in the file. Example: class FooPrivate and its method will be listed *after* the corresponding public class Foo while they will probably be coded earlier in the file.

Alphanumerical sorting can be useful in unknown code but even then that code is probably ordered the way it is for a reason and in that case the outline should probably preserve this order.

The same reasoning applies to the open files drop-down although there I find myself relying on the alphanumerical sorting a bit more often because there tends to be less logic in open tab layout.

I think that ideally both drop-downs would have a configurable default order (whatever works best for the user), and a way to open it in the other order on the fly (control-click, alt-click, etc). Or a control like in the Quick Open drop-down that toggles the mode (session duration?).
Comment 1 Francis Herne 2017-10-01 00:00:53 UTC
In 5.2 at least, the Outline view is already switcheable between alphabetical and definition-order. Click the A-Z icon next to the filter entry.

No opinion on the files dropdown; I use the Documents toolview instead which essentially works like a tree-style tabbar.
Comment 2 RJVB 2017-10-01 08:16:10 UTC
Hmm, I never saw that, and it has an "up triangle" icon over here. It's the widget called "Source Browser Mode", correct?

It'd be nice if that button could somehow be integrated into the main widget to save a little space.

I'll try to remember using the documents toolview for a while. I know it exists, and being a big fan of keeping my hands on the keyboard it's a bit surprising I don't use it already.
Comment 3 Francis Herne 2017-10-01 09:26:53 UTC
I think there might be too many things in KDevelop with similar names and roles...

I'm looking at http://www.flherne.uk/files/outline.png . I guess you're using the related searchbox thing, which I hadn't remembered the existence of. I also can't find a way to sort that one in document-order, which seems broken given the stated purpose of thse tools. (https://phabricator.kde.org/D3673#76450)


'Source Browse Mode' is unrelated; it causes clicking on a use to send KDevelop straight to the corresponding declaration.
Comment 4 RJVB 2017-10-01 09:42:48 UTC
Indeed, I'm referring to that other thingy that has "Outline..." as its default text. It sits next to the "Quick Open" widget in the upper toolbar and is very helpful in that it always shows the name of the function you're in (even if you got there during a global search).

And indeed, "Source Browse Mode" is absolutely NOT what I want. In fact it's something that sometimes activates itself for me which is extremely annoying and I've only failed to report yet since I have no idea under what circumstances it happens.
Comment 5 RJVB 2017-10-02 16:33:48 UTC
I thought you were referring to the open document tabswitcher (Ctrl+Tab) but that one also doesn't reflect the tab order reliably.

And as far as the open documents drop-down menu is concerned: sorting that one in tab order would address another thought I've been meaning to raise. It should list the "Overview" document corresponding to the diff on the top in the patchreview toolview. There's really no point in listing that at its alphanumerical position...
Comment 6 Justin Zobel 2022-11-10 08:52:33 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-11-25 05:17:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-10 05:15:03 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!