[PATCH] New feature: closed tabs trash bin as in Opera

Eduardo Robles Elvira edulix at gmail.com
Thu Dec 7 17:51:56 GMT 2006


Hello,

---- Intro

I don't remember exactly if I have written anything before this list, but 
hello everyone in case this is the first time =).

Dani and me are participating in event called "concurso de software libre" 
(which mean something like "Free Software Contest") in which students from 
any spanish university can develop a project and in the end some of them will 
get some prices. Our project was called "Konqueror on steroids" which was 
about adding some features to the web browser side of konqueror. 

That was in contrast with the rest of the projects which choosed to start a 
new app from start, but I felt like I wanted to touch some KDE 4 code and 
this was a great oportunity to do it.

-- Short Description

We set up an easy first goal and we have already achieved it: a trahbin with 
recetly closed tabs so that when the user closed a tab he didn't intend or 
simply wants to retrieve in a fast way one of those tabs he recently closed, 
he can very well do it. This is idea, as some of the others we have, came 
from Opera =)

The code is attached to this email. Also, you can get the latest version of it 
[1] along with the icons you must add to kdelibs/pics/crystalsvg that Dani 
created for the new action. You can see a screenshot of it [2]

-- Details

How does it work? easy. It maintains a list of closed URLs (views) per each 
window, and the first ten elements of that list is showed when the drop-down 
menu is shown. IF you click in the trash button or select one element of the 
list, it get's out of there and it gets opened in a new tab. When there's no 
item in the list, the button gets disabled, etc.

-- Final thoughts

This is a work in progress, and we probably will improve a bit the thing 
adding the possibility to clean the list, to customize the number of shown 
items via a configuarition file entry, add numbers and keystrokes to the 
items in the drop-down menu, maybe we should limit the number of closed URLs 
to something like 50-100 items...

Or being able to maintain also another list konqueror-wide with closed windows 
(you know, sometimes shit happens and you close the window and you want to 
get it back), or taking care not only of the urls but also of the disposition 
of the views (a tab can have any number of views in many kinds of 
dispositions). That was just a bit of wild brain storming ;-)

What do you think about this? I think it's a valuable feature that users will 
love (me for one). What are the chances of adding this to KDE3 branch? (I 
don't think that the backport effort would be difficult).

Thanks for your time,
         Eduardo Robles Elvira.

--
[1] https://forja.rediris.es/websvn/wsvn/csl-konqueror/?sc=0
[2] http://konquerization.wordpress.com/files/2006/12/trashtab.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parche.konqueror
Type: text/x-diff
Size: 10009 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20061207/a33a8758/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20061207/a33a8758/attachment.sig>


More information about the kfm-devel mailing list