Add functionality to restore closed tabs

Bug #1244420 reported by Ari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qpdfview
Fix Released
Wishlist
Adam Reichold

Bug Description

Hi again,

one of the key selling points of qpdfview is its tabbed nature. I love having all of my documents organized in a single window without crowding up my window manager and launcher. However, I do feel that some elements of the tab system could be improved.

For instance, I would love to see more advanced GUI tab controls in qpdfview.

Something that Chrome and Firefox do very well are the options they offer in their tab context menus. Things like

 - being able to close all tabs aside from the one you clicked on,
 - being able to close all tabs to the right
 - and the ability to reopen closed tabs

are very useful when working with a large number of tabs. I think qpdfview could also benefit from these context options.

--
(It's only after I wrote this that I realized that there already is a keyboard shortcut that covers the first control. I stand by the context menu, though. It's always good to accommodate both for mouse and keyboard-centric users, I think.)
--

Another feature I'd love to see in qpdfview would be a way to quickly reopen the last closed tab through a hotkey. CTRL+R might be a good choice for the default here, given how CTRL+SHIFT+W is already taken.

I am looking forward to hearing your thoughts on these ideas.

Thanks again for taking the time to read this.

Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello Ari,

I think the context menu and closing all tabs to the left/right should not be a problem to add... I'll look into it as soon as find some spare time.

Recovering closed tabs is something that I don't like to much since it would add another layer of state to the program which conflicts with keeping it simple IMHO. Also, I think that neither Firefox nor Chrome are good role models for qpdfview as these are huge programs that offer much more functionality that I really don't want to chase after in this more or less single-person project.

Best regards, Adam.

Changed in qpdfview:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Ari (ari-lp) wrote :

Hi Adam,

> I think the context menu and closing all tabs to the left/right should not be a problem to add... I'll look into it as soon as find some spare time.

Sounds great! I'll be glad to do help out with any testing needed when the time comes.

> Recovering closed tabs is something that I don't like to much since it would add another layer of state to the program which conflicts with keeping it simple IMHO. Also, I think that neither Firefox nor Chrome are good role models for qpdfview as these are huge programs that offer much more functionality that I really don't want to chase after in this more or less single-person project.

Understood. Leaving this feature request be is absolutely fine with me. It would have been more or less redundant to the "recently closed" list anyway.

Thanks again for all your hard work on qpdfview. What you have created here is truly remarkable.

Cheers
-- Ari

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Bug 1244420] Re: [Feature request] Advanced tab controls

Hello again,

Am 25.10.2013 14:57, schrieb Ari:
> Hi Adam,
>
>> I think the context menu and closing all tabs to the left/right should
> not be a problem to add... I'll look into it as soon as find some spare
> time.
>
> Sounds great! I'll be glad to do help out with any testing needed when
> the time comes.
>
>> Recovering closed tabs is something that I don't like to much since it
> would add another layer of state to the program which conflicts with
> keeping it simple IMHO. Also, I think that neither Firefox nor Chrome
> are good role models for qpdfview as these are huge programs that offer
> much more functionality that I really don't want to chase after in this
> more or less single-person project.
>
> Understood. Leaving this feature request be is absolutely fine with me.
> It would have been more or less redundant to the "recently closed" list
> anyway.

Just to spell it out: I don't think the feature you suggest is
completely out of scope, but every bit of functionality adds a
maintenance cost which, after summing it up, I don't feel comfortable
carrying on my own. But if/when new contributors step up, we should
definitely consider expanding several functional aspects of the program
including this one.

> Thanks again for all your hard work on qpdfview. What you have created
> here is truly remarkable.

Thank you.

> Cheers
> -- Ari
>

Best regards, Adam.

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Feature request] Advanced tab controls

Ok, trunk revision 1344 contains a tab context menu with actions to close all tabs to the left/right or all tabs but this one. (Dailydebs should be rebuilt in an hour or two.)

Revision history for this message
Ari (ari-lp) wrote :

Hello Adam,

I've been testing rev. 1344 for the past day and everything is working great here. I really like how you've made the tab actions bidirectional. Honestly, I never understood why web browsers didn't do that in the first place.

I have never coded anything - let alone maintained a project - but I think I have a better grasp now of what a time investment it can be. In light of this I am even more thankful for this feature and your swift implementation!

Cheers
-- Ari

summary: - [Feature request] Advanced tab controls
+ Add functionality to restore closed tabs
Changed in qpdfview:
milestone: none → 0.4.8
assignee: nobody → Adam Reichold (adamreichold)
status: Triaged → In Progress
Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello again,

since I have a bit of time on my hands, I tried implementing this: As usually, there is a setting "Track recently closed" to control whether the functionality is enabled and how many tabs are tracked (which is effective only after restart). Note that this can significantly increase memory usage as all intermediate data like cached pixmaps or modified forms and annotations are restored (i.e. the document views are just not destroyed and a closed tab takes just as much memory as any other invisible tab).

Please test and report your findings here. Thank you!

Best regards, Adam.

Changed in qpdfview:
status: In Progress → Fix Committed
Revision history for this message
Adam Reichold (adamreichold) wrote :

I renamed the setting to "Keep recently closed" to better indicate the actual functionality...

Changed in qpdfview:
status: Fix Committed → Fix Released
Revision history for this message
Ari (ari-lp) wrote :

I don't know why, but somehow I completely forgot to comment on this report. Thanks for implementing this feature!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.