Bug 139753 - Word and character count in context menu in Navigator
Summary: Word and character count in context menu in Navigator
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Word-Count
  Show dependency treegraph
 
Reported: 2021-01-18 18:22 UTC by Juergen
Modified: 2021-01-20 00:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Context menu in Navigator (31.00 KB, image/png)
2021-01-18 18:23 UTC, Juergen
Details
Headings 'Content Navigation View' mulitiple selection word count demo (1.28 MB, video/x-matroska)
2021-01-20 00:13 UTC, Jim Raykowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen 2021-01-18 18:22:11 UTC
Description:
When using Writer to write longer texts or even book it would be very handy, if one could know the word count or character count in the context menu for example in the Navigator.

Actual Results:
Right now the text needs to be highlighted for every heading and subheading

Expected Results:
Some way to know the word or character count of a chapter or sub-chapter


Reproducible: Always


User Profile Reset: No



Additional Info:
Some way to know the word or character count of a chapter or sub-chapter
Comment 1 Juergen 2021-01-18 18:23:29 UTC
Created attachment 168997 [details]
Context menu in Navigator
Comment 2 V Stuart Foote 2021-01-18 21:00:42 UTC
OK, I could see some use for a word count metric by section/chapter.

@Jim perhaps a 'Properties' context entry for elements in the 'Content Navigation View' mode of Navigator?
Comment 3 Jim Raykowski 2021-01-19 03:21:25 UTC
Either a 'Properties...' entry in the Headings context menu used to display an info dialog containing word/character count info or perhaps a tool tip similar to the one that appears when the mouse pointer is placed over a section entry.

It's a good hack for learning a bit about the document model, particularly the outline nodes, also the content tree in the Navigator and more.
Comment 4 Juergen 2021-01-19 04:25:30 UTC
It could simply be displayed at the bottom line under the text, where it is displayed at the moment. I could imagine, that when I click on a heading the count is displayed. At the moment the count is always the full document. There must however be a way to display the total count.
Comment 5 Jim Raykowski 2021-01-19 07:44:57 UTC
Multiple heading can be selected in the 'Outline Content Navigation View' mode. Then right click to display the context menu and choose Select. The word count for the selection made will show in the status bar word count area.

From the Help for version 7.2 -
If you only want to view the entries in a certain category, select the category and click the Content View icon. Until you click the icon again, only the objects of this category will be displayed.

The Content View icon is the first icon in the second row tools area above the content tree.
Comment 6 V Stuart Foote 2021-01-19 15:24:32 UTC
(In reply to all.online from comment #4)
> It could simply be displayed at the bottom line under the text, where it is
> displayed at the moment. ...

(In reply to Jim Raykowski from comment #5)
> Multiple heading can be selected in the 'Outline Content Navigation View'
> mode. Then right click to display the context menu and choose Select. The
> word count for the selection made will show in the status bar word count
> area. ...

So requested function is already there with Jim's Navigator outline work. Checked and it works well...

Something more?
Comment 7 Juergen 2021-01-19 16:40:17 UTC
Thanks for the clue Stuart
I can select one heading and then select and see count
I can't select multiple headings
When I select a heading with sub-headings only the the actual lenth of the heading is counted but not the content with all its sub-headings
Comment 8 V Stuart Foote 2021-01-19 17:26:31 UTC
(In reply to all.online from comment #7)
> Thanks for the clue Stuart
> I can select one heading and then select and see count
> I can't select multiple headings
> When I select a heading with sub-headings only the the actual lenth of the
> heading is counted but not the content with all its sub-headings

Selection in the collapsed state will include all 'hierarchically' children objects in the counts. When uncollapsed the counts are for just the one selected object.

The + icon shows there are included objects collapsed, the - icon shows tree is fully expanded, and selection/count would be just each object.
Comment 9 Juergen 2021-01-19 18:05:37 UTC
Then the requested feature is already implemented. Thanks Stuart for the tip!
Comment 10 V Stuart Foote 2021-01-19 18:27:13 UTC
No, no. Thanks to Jim for doing the heavy lifting on bug 38093! A gift that keeps on...
Comment 11 Jim Raykowski 2021-01-20 00:13:33 UTC
Created attachment 169030 [details]
Headings 'Content Navigation View' mulitiple selection word count demo

This demo isn't really about the Headings tool tip seen displaying the word/character count info but about how to access the 'Headings Content Navigation View' to be able to select multiple Headings using Shift and Ctrl mouse clicks. Keyboard multiple selection also works using Shift + Up/Down Arrow. I wish I would have hovered over the 'Content Navigation View' button long enough for it to show the tool tip 'Content Navigation View'