Bug 152457 - Ability to sort Paragraph and Character styles in sidebar by frequency of use
Summary: Ability to sort Paragraph and Character styles in sidebar by frequency of use
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Keywords: needsUXEval
Depends on:
Blocks: Sidebar-Styles Sidebar-Styles-Filter
  Show dependency treegraph
Reported: 2022-12-10 16:40 UTC by rferraro
Modified: 2022-12-12 15:08 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description rferraro 2022-12-10 16:40:03 UTC
This applies Pareto's rule (80/20) to the sorting of the styles in sidebar. 20% of styles will be used 80% of the time. It is much easier to make changes to complex documents if the eyes move to a portion of the screen where they know the style will be. It would be more useful with character styles than paragraph styles but useful for both. Sometimes it is a bit painful to have to move your eyes up and down the entire list to find the style that is already used many times. Yes, the order may change a little from time to time, but the change will be minor, and positions may change by one or two, but they will still be in the top right corner of the screen where the eyes go. Below the styles in use that are sorted by frequency of use, the styles that are not in use could be then just sorted alphabetically.

Actual Results:
See above

Expected Results:
See above

Reproducible: Always

User Profile Reset: No

Additional Info:
See above
Comment 1 V Stuart Foote 2022-12-10 19:55:18 UTC
I don't see the need. We have the default 'Hierarchical' and 'All Styles' tree views (which admittedly can be tedious to wade through). 

But it is *trivial* to change to the 'Applied Styles' tree view for the list box--and that list mode is sufficient to style pick tasks on even very complex documents without need to sort.

Comment 2 Dieter 2022-12-11 05:30:22 UTC
(In reply to V Stuart Foote from comment #1)
> I don't see the need.
> IMHO => WF

Comment 3 rferraro 2022-12-11 06:35:20 UTC
Ok. I just manually achieved it by putting and underscore in front of the styles I use the most and it brought them to the top of the sidebar for me.
Comment 4 Heiko Tietze 2022-12-12 08:33:47 UTC
The idea to sort a list makes sense in general. But that requires to show this information (so it would be actually a table) or to have a very clear distinctive criteria (like font list).

As for styles it is recommended to use it sparingly - and filter the list. And I think it's easy to pick the right item out of 10. You probably would dislike the resorting very much. And ultimately the approach with a leading character is efficient.
Comment 5 rferraro 2022-12-12 15:00:54 UTC
It seems like the manual method with the leading character is working nicely for me with Applied Styles.

One point of frustration I now notice is that the list defaults to hierarchical when loading the document. So, it doesn't default to last view. It is not that inconvenient but just an extra step to go through when editing. Is that setting something you can alter to be saved with the document or sidebar settings?
Comment 6 Heiko Tietze 2022-12-12 15:08:41 UTC
(In reply to rferraro from comment #5)
> Is that setting something you can alter to be saved with the
> document or sidebar settings?

Yes, we should remember the last used style filter per document. See bug 126204.