Bug 62007 - Konqueror should have a "directories first" option
Summary: Konqueror should have a "directories first" option
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 13934 155004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-02 10:48 UTC by Maurizio Colucci
Modified: 2009-04-20 19:54 UTC (History)
6 users (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 Maurizio Colucci 2003-08-02 10:48:32 UTC
Version:            (using KDE KDE 3.1.2)
Installed from:    Mandrake RPMs

Hello,

IMHO konqueror should have a means to display directories together with files.
This is very useful when you are ordering by name. This is also done by Windows XP when "arranging by groups" (and ordering by name).

RATIONALE:
This feature is important because extraction tools (winzip, winrar, etc) have a tendency to extract the file in a directory with the same name as the file. Thus you often have a directory with name DDDD and a file with name DDDD.zip. If they are located close to each other, you can see that you have a duplication, and remove one of them.

example: when I order by name, I want to see the following


artificial-intelligence/                        <-- this is a dir
artificial-intelligence.zip                     <-- this is a file
this-is-a-file/
this-is-a-file.tar.gz
this-is-a-file.tar.bz2

SUGGESTED FIX
-----------------------------
Konqueror should have an options "directories intermixed with files" or "directories first".
This should be useless when you are sorting by type, but should be used when sorting by name, date, permission.

FURTHER IMPROVEMENT
-------------------------------------------
Even better would be to separate the letters, just like XP does:


A
---

artificial-intelligence/                        <-- this is a dir
artificial-intelligence.zip                     <-- this is a file


T
---


this-is-a-file/
this-is-a-file.tar.gz
this-is-a-file.tar.bz2
Comment 1 Maksim Orlovich 2003-08-02 15:32:43 UTC
Note that such option already exists in the iconview mode (but not the listview).  
Great argumentation, BTW.  
 
Comment 2 Maurizio Colucci 2003-08-07 14:02:30 UTC
There is a _much_ better motivation than that of archiving tools. 
 
I keep a "books" directory where I store my ebooks. Some of them are in html format, 
some in pdf. The former will be directories (containing a bunch of html files), the 
latter will be single files. But, semantically, they are all books, so I don't want a 
distinction. 
 
When I order by name, I want to press N in konqueror and be teleported to the first  
book whose name starts with N. THEN I WANT TO VISUALLY CHOOSE ONE 
AMONG THEM. For this to be possible, they must be listed close to each other. 
Comment 3 Maksim Orlovich 2004-05-11 01:22:11 UTC
*** Bug 13934 has been marked as a duplicate of this bug. ***
Comment 4 FiNeX 2009-01-03 00:01:49 UTC
@Peter: What do you think about this ? It could be grouping the list and the column view... is it interesting for dolphin?
Comment 5 Peter Penz 2009-01-04 20:16:10 UTC
@FiNeX: I agree that this kind of option should be available. This feature was available in KDE 3 (I think it was represented by a checkbox "Sort folders first") and the only reason to drop this feature was limited time during the KDE3 -> KDE4 port.

I've changed the product to Dolphin, so that I don't forget about it... (-> will automatically be available in Konqueror too).

BTW: thanks Maurizio for the good bug report, it's great that you explained in detail why you miss this functionality :-)
Comment 6 Frank Reininghaus 2009-04-20 19:22:22 UTC
SVN commit 956814 by freininghaus:

Make it configurable if folders and files are sorted separately (with folders first) or not in KDirSortFilterProxyModel.

A commit that makes use of this in Dolphin and Konqueror in KDE 4.3.x will follow later...

CCBUG: 62007


 M  +29 -10    kdirsortfilterproxymodel.cpp  
 M  +12 -1     kdirsortfilterproxymodel.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=956814
Comment 7 Frank Reininghaus 2009-04-20 19:52:23 UTC
SVN commit 956820 by freininghaus:

Let the user choose if folders are always shown first in the views of
Dolphin and Konqueror (the default) or not. This setting can be
changed in the View menu: "View->Sort By->Folders First".

FEATURE: 62007


 M  +9 -0      dolphincolumnview.cpp  
 M  +1 -0      dolphincolumnview.h  
 M  +6 -0      dolphincolumnwidget.cpp  
 M  +1 -0      dolphincolumnwidget.h  
 M  +5 -0      dolphincontroller.cpp  
 M  +18 -0     dolphincontroller.h  
 M  +1 -0      dolphinpart.rc  
 M  +17 -0     dolphinsortfilterproxymodel.cpp  
 M  +2 -0      dolphinsortfilterproxymodel.h  
 M  +1 -0      dolphinui.rc  
 M  +35 -0     dolphinview.cpp  
 M  +18 -0     dolphinview.h  
 M  +17 -0     dolphinviewactionhandler.cpp  
 M  +8 -0      dolphinviewactionhandler.h  
 M  +5 -0      settings/dolphin_directoryviewpropertysettings.kcfg  
 M  +14 -0     settings/viewpropertiesdialog.cpp  
 M  +2 -0      settings/viewpropertiesdialog.h  
 M  +13 -0     viewproperties.cpp  
 M  +3 -0      viewproperties.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=956820
Comment 8 Frank Reininghaus 2009-04-20 19:54:25 UTC
*** Bug 155004 has been marked as a duplicate of this bug. ***