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 - Patch for: Display count of selected characters/lines in status bar
Summary: Patch for: Display count of selected characters/lines in status bar
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PATCH_AVAILABLE, PLAN
: 234140 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-31 15:54 UTC by jsprenkle
Modified: 2014-04-26 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed patch (3.82 KB, patch)
2013-06-18 22:40 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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