Bug 153492 - New display style in trash bin. Sorted by deletion date.
Summary: New display style in trash bin. Sorted by deletion date.
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 178476 216677 267222 360952 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-05 17:24 UTC by Philipp W
Modified: 2017-08-17 08:33 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In: 17.08.0


Attachments
An example for my idea. (78.36 KB, image/jpeg)
2007-12-05 17:25 UTC, Philipp W
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp W 2007-12-05 17:24:18 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

Hello

I have an idea for a much more intuitive trash bin layout. I propose a design like that:
when u open the trash:/ folder there are three areas:
Today
Yesterday
Before (or a better name)
in each area the deleted files are sorted by their deletion date.

This would be very great. With those large harddisks today you have no urge to empty the trashbin very often. And sometimes it is very uselful to find a file u moved to trash 2 months ago. So there are many files in the trashbin. And when you want to restore a file u just moved to trash you have to search for it or change to a different display style in konqueror (like detailled view). But this is not the very cool way.

So I propose a sorting by deletion date. Those three (or more and even customizable??) areas should of course be seperated with a nice style element.

Does anyone have questions or notes to this wish. Let me know, we can discuss it.

I have made a screenshot of this. It is pretty ugly but I hope it explains what I mean.
Comment 1 Philipp W 2007-12-05 17:25:31 UTC
Created attachment 22361 [details]
An example for my idea.

This is my first idea.
Comment 2 Eike Hein 2007-12-05 22:52:10 UTC
KDE 4's new standard file manager Dolphin (and by extension Konqueror, because it reuses Dolphin's file system views) provides functionality that is a good match for this wish: It's possible to enable a "Show in Groups" option in the "Icons" view mode that divides the file items into groups and displays labeled group headers. If a folder is sorted by date, the files will be grouped by modification date. It displays real dates rather than fuzzy ones (i.e. not "Yesterday"), but it's close.
Comment 3 Philipp W 2007-12-06 00:02:35 UTC
Yes, I have seen it. But it does sort for each date, no larger groups possible.
My wish gives the possibility to group like: "today, last week, before".

And it needs changing the display style of my file manager when I am in the trashbin. And back to normal when I am in the filesystem again.

But the style that dolphin gives for that grouping is very nice.
Comment 4 Kevin Ottens 2009-02-28 11:08:21 UTC
something for kio trash I guess.
Comment 5 Angel Blue01 2009-03-04 18:03:32 UTC
I'd be satisified if there was a collumn to sort by "Date Deleted" as opposed to "Date" which is date modified, in the Trash.
Comment 6 Kai Uwe Broulik 2010-08-31 03:17:10 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Christoph Feck 2011-02-27 13:34:10 UTC
*** Bug 267222 has been marked as a duplicate of this bug. ***
Comment 8 Peter Penz 2012-01-06 12:35:20 UTC
*** Bug 216677 has been marked as a duplicate of this bug. ***
Comment 9 Peter Penz 2012-01-06 12:35:38 UTC
*** Bug 178476 has been marked as a duplicate of this bug. ***
Comment 10 Jaan Vajakas 2012-01-09 22:26:48 UTC
I would say that the comments of this issue and its duplicates actually cover multiple issues:
a) being able to sort trash by deletion date/time,
b) add "Date deleted" column to the trash view,
c) add "Original location" column to the trash view,
d) new trash view style where files are classified into categories like "Today", "Yesterday", "Before"

a), b) and c) were present in Konqueror in KDE3 (as comments in Bug 216677 claim) and I would be very happy to have them back in Konqueror and Dolphin in KDE4.

d) was the original intent of Bug 153492. I personally think I would not need it (the granularity of one day for classification is quite arbitrary: sometimes I delete many files in a day, sometimes I might want to find a file that I deleted many days ago, so I think I would in general just use the Details view and sort files by deletion date). I would actually prefer to have the Details view without classification, only the two additional columns "Date deleted" and "Original location" (I don't care much about the other views, but classification might indeed make them more usable for viewing trash).
Comment 11 tosiara 2012-10-13 16:13:31 UTC
I would like to sort trash by time of the deletion too
Comment 12 Kai Uwe Broulik 2012-10-13 16:15:19 UTC
Frank, can't this be achieved as some kind of faked metadata? So we can display and sort by it like we can for rating, modify date, etc?
Comment 13 Martin M 2014-01-28 12:37:49 UTC
(In reply to comment #12)
> Frank, can't this be achieved as some kind of faked metadata? So we can
> display and sort by it like we can for rating, modify date, etc?

The metadata is already available. In ~/.local/share/Trash/info/xxx.trashinfo, the DeletionDate is written. The problem, I suppose, is just how to get Dolphin to use that information.
Comment 14 Ganton 2014-06-25 16:04:00 UTC
> The metadata is already available. In ~/.local/share/Trash/info/xxx.trashinfo, the DeletionDate is written. 

That's true! 

Also, Windows users (like the ones that come from Windows XP to a KDE distribution) are used to have that "deletion date" column and when they don't see it in Plasma, they think that Windows took a better care of users :-(

KDE Plasma users being puzzled, too:
http://forum.kde.org/viewtopic.php?f=66&t=17915
http://ubuntuforums.org/showthread.php?t=1000043
https://bugs.kde.org/show_bug.cgi?id=267222
Comment 15 David Tonhofer 2017-06-18 15:07:23 UTC
I can't believe this is a nearly 10y old bug.
Comment 16 David Faure 2017-06-19 07:16:28 UTC
kio_trash already says (in its json file)

            "ExtraNames": [
                "Original Path", 
                "Deletion Date"
            ], 
            "ExtraTypes": [
                "QString", 
                "QDateTime"
            ],

which makes those column descriptions available via KProtocolInfo::extraFields()
and the actual data available via KIO::UDSEntry::UDS_EXTRA and KIO::UDSEntry::UDS_EXTRA+1.

It's up to Dolphin to use that ;)

KFileItemModel::retrieveData uses UDS_EXTRA for the "Path" column, but doesn't use extraFields() generically in order to allow kioslaves to define extra columns. -> reassigning to Dolphin.
Comment 17 Kai Uwe Broulik 2017-06-19 10:27:44 UTC
There you go: https://phabricator.kde.org/D6269
Comment 18 David Tonhofer 2017-06-19 13:49:07 UTC
Sweet!
Comment 19 Kai Uwe Broulik 2017-06-20 09:34:17 UTC
Git commit 0d2f86de18390169286c9ef928c0ca388e3ccd2d by Kai Uwe Broulik.
Committed on 20/06/2017 at 09:32.
Pushed by broulik into branch 'master'.

Support "Deletion Time" role in Trash

This allows to sort by and show (both as additional data in icon view and column in column
view) deletion date of files in Trash.

CHANGELOG: It is now possible to view and sort by "Deletion Time" in Trash
FIXED-IN: 17.08.0

Differential Revision: https://phabricator.kde.org/D6269

M  +1    -1    src/kitemviews/kfileitemlistwidget.cpp
M  +38   -4    src/kitemviews/kfileitemmodel.cpp
M  +4    -2    src/kitemviews/kfileitemmodel.h

https://commits.kde.org/dolphin/0d2f86de18390169286c9ef928c0ca388e3ccd2d
Comment 20 Elvis Angelaccio 2017-08-17 08:33:47 UTC
*** Bug 360952 has been marked as a duplicate of this bug. ***