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.
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.
If it is easy to implement, open a review request with the patch at https://git.reviewboard.kde.org/
+1 Would be great to be able to collapse it all like is possible in other PDF viewers.
Proposed patch: TOC: Add collapse/expand options https://phabricator.kde.org/D14904
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