mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
203 stars 62 forks source link

[Feature Request] add function for collapsing/expanding all levels of index entries #533

Open floriel opened 3 years ago

floriel commented 3 years ago

Expected behaviour

Open document with multiple layers of index entries > right click on side panel while it's showing the index > context menu comes up with an additional menu entry: "collapse/expand all index levels" > click on "collapse/expand all index levels" ==> if there are any expanded index entries, they get collapsed. If there are no expanded index entries, all expandable index entries get expanded

Actual behaviour

atril always starts with all expandable index entries expanded. an has not auto collapse function. For documents with a lot of index entries on deeper index layers, this makes quickly finding e.g. the next top level index entry an unnecessary hassle. You can collapse them manually one by one, but you'll have to do it again and again each time you reopen the document.

MATE general version

1.24.0

Package version

1.24.0

Linux Distribution

xubuntu 20.10

Link to bugreport of your Distribution (requirement)

it's not a bug, but it could become a feature ;-)

metapsychologe commented 3 years ago

I would suggest do add 2 menu entries:

Currently I only have 1 menu entry "print" (Xubuntu 20.04), so adding 2 entries won't overfill the menu. This would eliminate the inconvenience that I have to do the same procedure twice in order to expand all entries when I closed any beforehand. Also some users may be astonished that the entries close when they want to expand it.