Bug 216870 - Collapse and Expand the contents index
Summary: Collapse and Expand the contents index
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 23:13 UTC by Musikolo
Modified: 2018-08-26 16:38 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 18.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Musikolo 2009-11-30 23:13:42 UTC
Version:           0.9.3 (using KDE 4.3.3)
OS:                Linux
Installed from:    Archlinux Packages

When reading long books with lots of chapters and sections, it's quite useful to be able to collapse and expand the index tree. I would like to be able to do right click on the index and see a contextual menu that would allow to expand and collapse the index. It would also be nice to have these options in the View menu too. This options are quite useful because you can collapse everything easily and expand only those sections you are interested in, which will give you a better overview of the parts you are interested in.
Comment 1 kubiznakpetr+kde 2014-09-15 10:03:31 UTC
I find this feature to be very useful for large documents (e.g. reference manuals with +1000 pages). I also believe it is quite easy to implement. Please do it as soon as possible.
Comment 2 Christoph Feck 2014-09-28 13:48:55 UTC
If it is easy to implement, open a review request with the patch at https://git.reviewboard.kde.org/
Comment 3 zellox 2016-04-23 22:32:50 UTC
+1

Would be great to be able to collapse it all like is possible in other PDF viewers.
Comment 4 Peter Wu 2018-08-17 16:41:02 UTC
Proposed patch:
TOC: Add collapse/expand options
https://phabricator.kde.org/D14904
Comment 5 Oliver Sander 2018-08-26 12:08:08 UTC
Git commit 61c2c2ceddc0ebb8951b2aa7853789ffdfc859a0 by Oliver Sander, on behalf of Peter Wu.
Committed on 26/08/2018 at 12:05.
Pushed by sander into branch 'master'.

TOC: Add collapse/expand options

Large specifications with many (nested) sections are painful to navigate
through when the TOC is expanded by default. Introduce four new options,
"Expand/Collapse whole section" is based on Kate's document view while
"Expand/Collapse all" was added to handle the top-level sections.

As for other viewers, PDF.js uses shift-click to handle the former while
using double-click on a the TOC icon to handle the latter. That is not
very obvious, so extending the context menu seems the next best option.

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

M  +15   -2    part.cpp
M  +1    -1    part.h
M  +46   -0    ui/toc.cpp
M  +6    -0    ui/toc.h

https://commits.kde.org/okular/61c2c2ceddc0ebb8951b2aa7853789ffdfc859a0