This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191499

Summary: Patch for: Display count of selected characters/lines in status bar
Product: editor Reporter: jsprenkle <jsprenkle>
Component: NavigationAssignee: Milutin Kristofic <mkristofic>
Status: VERIFIED FIXED    
Severity: normal CC: mariusz_m
Priority: P3 Keywords: PATCH_AVAILABLE, PLAN
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Proposed patch

Description jsprenkle 2010-10-31 15:54:28 UTC
Occasionally it is useful to know how many characters are in a string or lines in a method. Please show a count of selected characters/lines in the editor status bar. Perhaps when a use highlights text it would become visible. This would make it unobtrusive and keep the visual clutter down.
Comment 1 markiewb 2013-06-18 22:40:07 UTC
Created attachment 136001 [details]
Proposed patch

I like to propose a patch to solve this issue. The patch 
* introduces the display of the count of selected characters and lines (if any selection in the document)
* changes the format of the position element from "row | column" to "row:column/countLines:countChars" (in accordance to the format in IDEA)

@NB-Dev: Please review and commit if appropriate. I guess this will be post-7.4. What do you think about the layout changes ? The statusbar item takes now plently of horizontal space when nothing is selected. Probably we should leave out the rowCount? What do you think?
Comment 2 Milutin Kristofic 2013-08-08 14:18:31 UTC
*** Bug 234140 has been marked as a duplicate of this bug. ***
Comment 3 Milutin Kristofic 2013-09-18 12:25:37 UTC
Thank you, I committed your patch as you proposed.

http://hg.netbeans.org/jet-main/rev/5cddca26fd62
Comment 4 Quality Engineering 2013-09-19 12:57:26 UTC
Integrated into 'main-silver', will be available in build *201309191137* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5cddca26fd62
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #191499 - Patch for: Display count of selected characters/lines in status bar - markiewb contribution
Comment 5 markiewb 2014-04-26 08:56:43 UTC
Was already fixed in 8.0