Enable collapsing/expanding of Outline Items#3753
Enable collapsing/expanding of Outline Items#3753Snuffleupagus wants to merge 9 commits intomozilla:masterfrom Snuffleupagus:outline-rewrite
Conversation
|
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 |
|
@Snuffleupagus I really like this feature. It makes the panel a lot more useful. I do agree that it would be better to split this up into several PRs, for example for moving the I have experienced two problems when roughly testing this PR just now:
|
|
@timvandermeij Thanks for the feedback! Regarding your comments:
|
|
@brendandahl, @yurydelendik Are you interested in adding these features to the viewer? |
|
@Snuffleupagus, I never felt collapsing the outline items -- finding information in huge collapsible tree is not a good thing. Inertia scrolling, e.g. two-finger scroll, is helping quicker find the info. (And I think it's a bad experience trying to hit a small icon with mouse) Ask shorlander for the input. Highlighting currently visible bookmark might be a useful feature to have. |
|
@yurydelendik OK, I understand your point of view.
|
|
@yurydelendik I think I like the collapsed tree better. I agree that finding information in a huge collapsed tree isn't exactly optimal, but I think finding information in a huge opened tree is also very difficult, not to mention that in the current version the tree is rather simple and therefore not nice to use. If the collapsed tree is really not the way to go according to you, I think adding the classic tree lines (see http://jquery.bassistance.de/treeview/demo/ for example) would already improve this a lot. Regarding the highlighting, I agree that this is a useful feature, but I still think that the first child item should be selected once you click it and not the parent item (see #3753 (comment)). It's rather confusing otherwise, I'm afraid... |
I don't know it there is a misunderstanding regarding how highlighting works in this patch. The way that this is implemented, it just highlights the first outline item on the currently visible page. It has nothing to do with what that the user clicked on. |
|
Just to add another thought, most documents have the outline in "expanded form" within the document, so a collapsed form can be nice when you don't want to go through all of that. |
|
I highly approve of any version of this feature - As I see, it is set to "Work in progress". Is there any chance to know when you are planning on implementing this in the main branch? I tried merging it with the current releases, but to no avail - It seems the structure has change a little too much since the PR was posted... |
|
@flopes89 As you can see from the discussion above, there isn't consensus on either:
Given that this code is 1.5 years old, and that we've done (and are still doing) a lot of refactoring of the viewer code, it's to be expected that this won't work in it's current form. |
|
@Snuffleupagus Thanks for the update. I can understand the disucssion, I wasn't sure if there was some progress, as it is still marked as "in progress" - Maybe this should be relabelled then? |
No; the |
|
Just as a status update for everyone following this PR: it is closed in favor of #6242 where we continue this feature development. |
This PR does a number of things:
DocumentOutlineViewcode to it's own file.<div>, it's changed to use<ul>and<li>(unordered lists). This is necessary for the next part of this PR, and also makes it easy to fix a few visual nits in the current CSS.There is also a menu, that makes it easy to collapse/expand all items.
For testing this, the following file could be used: http://mirrors.ctan.org/info/lshort/english/lshort.pdf.
I'm submitting this PR to see if there is any interest in the above features.
If there is, I assume it would be best to split this into a couple of different PRs!?