Bug 63967 - Ability to Quickly Get Word Count of Sections Using Navigator
Summary: Ability to Quickly Get Word Count of Sections Using Navigator
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low enhancement
Assignee: Jim Raykowski
URL:
Whiteboard: target:7.0.0 target:25.2.0
Keywords:
Depends on:
Blocks: Word-Count
  Show dependency treegraph
 
Reported: 2013-04-26 15:46 UTC by Catbells
Modified: 2024-10-28 15:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
video demo of sections tool tip displaying word count in section (337.61 KB, video/x-matroska)
2020-04-29 22:17 UTC, Jim Raykowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Catbells 2013-04-26 15:46:21 UTC
Would it be possible to use shift key in conjunction with Navigator to select text from cursor position to the jump made with Navigator or, have a 'Select section' feature?

Students and others require a word count of a large part of a document, for example a amin body of text omitting title page, table of contents and bibliography.  We are not interested in the word count of the whole document.  Scrolling to the start of the main body is too inconvenient to check the word count as often as we would like.

If there was an enhancement to select section, we could put the main body of our document in a section.  We could quickly and easily select the section frequently to check the word count.

However, some authors may want to use more than one section for the main body of their work.  Holding down the shift key while using Navigator would allow them to select text from where they were working to any point they chose.

I'd really like to know the thoughts of other people about this.
Comment 1 Samuel Mehrbrodt (allotropia) 2013-10-03 14:38:45 UTC
Need input from ux-advise.
Comment 2 Joel Madero 2014-06-25 17:24:53 UTC
I don't think UX is needed here. Seems like a fine request - who will implement it, no clue ;)

Thank you for reporting this enhancement request! I can confirm that this is a valid enhancement request on:
Version: Version: 4.4.0.0.alpha0+  
Build ID: 8fae55c7d3fead6ce18556d5ccaa0958b7cfed91
Date:   Mon Jun 23 15:40:45 2014 +0200
Platform: Ubuntu Linux 14.04 x64
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
As I've been able to confirm the enhancement request I am marking as:

New (confirmed)
Enhancement
Low - you can already get a word count although it's a bit tedious. Plus this seems a bit hard to actually implement


Another way to possibly implement is just to get a word count within navigator as well - as you click "Header 1" it gives you the word count of what is in Header 1 until the next header. Seems like this would help also.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
LibreOffice is powered by a team of volunteers, every bug is confirmed (triaged) by human beings who mostly give their time for free. We invite you to join our triaging by checking out this link:
https://wiki.documentfoundation.org/QA/BugTriage

There are also other ways to get involved including with marketing, UX, documentation, and of course developing -  http://www.libreoffice.org/get-help/mailing-lists/. 

Lastly, good bug reports help tremendously in making the process go smoother, please always provide reproducible steps (even if it seems easy) and attach any and all relevant material
Comment 3 Jim Raykowski 2020-02-02 06:46:30 UTC
Setting to resolved by merge made for bug 128814
Comment 4 sdc.blanco 2020-02-03 14:39:11 UTC
From Navigator, right-click on Section name, choose "Select", read word count from Status bar.

Tested with:

Version: 7.0.0.0.alpha0+ (x64)
Build ID: dfd027342e6b4107ebd3369de96ef2be3883724d
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: en-US (en_DK); UI-Language: en-US
Calc: CL

Thanks Jim!  Very practical.
Comment 5 Jim Raykowski 2020-03-28 01:24:11 UTC
Here is a patch that displays word and character count in a tool tip for Sections in Writer Navigator.

https://gerrit.libreoffice.org/c/core/+/91268
Comment 6 Jim Raykowski 2020-04-29 22:17:51 UTC
Created attachment 160097 [details]
video demo of sections tool tip displaying word count in section
Comment 7 Commit Notification 2020-05-01 05:15:27 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a7e0375e40dd98b3bdc544967b5652a4dc0965fc

tdf#63967 Navigator section tooltip word and character count

It will be available in 7.0.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Cor Nouws 2020-05-02 12:01:01 UTC
:D
Comment 9 Commit Notification 2024-08-13 16:19:29 UTC
Pierre F committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/e0f5a2be15540e180ce9c1873276d185c0ba52fc

document word count tooltip in navigator (implemented in 7.0 tdf#63967)
Comment 10 Heiko Tietze 2024-08-14 06:53:09 UTC
I wonder if it's enough to have the word count only for sections. The tooltip wont be shown on headings, frames, tables, etc. Would be nice to have this information at least for headings (including the total number for the root node).
Comment 11 Jim Raykowski 2024-08-14 22:01:19 UTC
(In reply to Heiko Tietze from comment #10)
> I wonder if it's enough to have the word count only for sections. The
> tooltip wont be shown on headings, frames, tables, etc. Would be nice to
> have this information at least for headings (including the total number for
> the root node).

code pointer:
sw/source/uibase/utlui/content.cxx
IMPL_LINK(SwContentTree, QueryTooltipHdl, const weld::TreeIter&, rEntry, OUString)
case ContentTypeId::REGION
Comment 12 Heiko Tietze 2024-08-15 08:20:20 UTC
(In reply to Jim Raykowski from comment #11)
> code pointer...
And the word count per outline?
Comment 13 Jim Raykowski 2024-08-15 19:17:10 UTC
https://gerrit.libreoffice.org/c/core/+/171920
Comment 14 Heiko Tietze 2024-08-16 07:12:27 UTC
(In reply to Jim Raykowski from comment #13)
> https://gerrit.libreoffice.org/c/core/+/171920

Thanks a lot. I think for consistency we can keep the total numbers on Headings empty in favor of the wordcount in the statusbar.
Comment 15 Commit Notification 2024-08-16 07:17:47 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/dd93375dcebe4eb7d7cc9696c18728f83aaed86e

related tdf#63967: Ability to Quickly Get Word Count of Sections

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.