After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 314856 - Auto-update document statistics
Auto-update document statistics
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
3.18.x
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-30 17:15 UTC by Martin West
Modified: 2020-11-24 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update stats in real time (6.58 KB, patch)
2006-06-19 20:30 UTC, jessevdk@gmail.com
none Details | Review

Description Martin West 2005-08-30 17:15:18 UTC
Instead of having an update button in the document stats box, could it do so
automatically after a second or two of idle keyboard?

Other information:
Comment 1 Paolo Borelli 2005-12-15 11:58:01 UTC
Yes, this would be a nice enanchement if someone wants to give it a try.
Comment 2 Paolo Borelli 2005-12-15 22:09:45 UTC
Sorry for the spam... I think it makes sense track all possible enanchements to
the docinfo plugin in one place, so I'm marking this as dup of 304371

*** This bug has been marked as a duplicate of 304371 ***
Comment 3 Martin West 2006-06-19 07:34:02 UTC
The bug this was marked as a duplicate of does not fix this bug. Please can this be reopened?
Comment 4 Paolo Borelli 2006-06-19 08:48:17 UTC
good point. Though I don't see this happen anytime soon unless someone provides a patch :)
Comment 5 jessevdk@gmail.com 2006-06-19 09:03:15 UTC
I'll give it a go when I have the time. It seems to be a pretty trivial patch.
Comment 6 jessevdk@gmail.com 2006-06-19 20:30:05 UTC
Created attachment 67651 [details] [review]
Update stats in real time

This patch adds realtime updating (well, not real real-time). It updates 2 seconds after the last change to the buffer. It also automatically updates when the active document changes.
Comment 7 Paolo Borelli 2006-07-08 10:21:00 UTC
the patch looks fairly good to me, though I am a bit concerned about this change:


1) the doc stats dialog is not modal, you can keep on typing while the dialog is up; if it's a big document gathering the stats can take a noticeable time. Thus autoupdating could be annoying... we should at least find a way to comunicate that something is a happeing (statusbar? busy cursor?)
Maybe there should be an explicit [ ] Automatically Update check button? (lame, I know)


2) automatically switching the document could be confusing. I am not sure which use case is most common, but I guess that I would use the plugin (especially the autoupdate thingie) to keep an eye on the lenght of a document I am writing, if I switch tab to take a look at a draft or some notes or something like that, I don't care about their document stats.
Comment 8 Pepito Seg 2007-01-17 05:11:13 UTC
I use gedit 2.16.1 and still is not implemented this characteristic. Perhaps to be used an observant pattern.
Comment 9 Markus Amalthea Magnuson 2009-01-08 16:04:20 UTC
Regarding comment #7:

If the auto-updating of document statistics is too slow, or currently irrelevant, then the user can just close the stat window. Am I missing something here?

Also, is it really that slow? I just tried updating statistics for a 1.3MB textfile on my rather old laptop, and it takes less than a second.

It seems like you are pointing out kind edge cases, I think that for a majority of us this would be a welcome feature.
Comment 10 Rodney Beede 2012-06-20 21:06:57 UTC
I'd also like to propose that the auto-updating show the stats in the status bar instead of a separate window.  Especially useful would be the length of the currently selected text.
Comment 11 Ashhar Hasan 2016-02-21 04:17:18 UTC
Can I try and submit a patch for this? Where can I find the concerned source code. And how is a patch generated. I am more familiar with git.
Comment 12 Alexandre Franke 2016-02-21 14:28:04 UTC
(In reply to Ashhar Hasan from comment #11)
> Can I try and submit a patch for this? Where can I find the concerned source
> code. And how is a patch generated. I am more familiar with git.

You may want to read https://wiki.gnome.org/Newcomers
Comment 13 Sébastien Wilmet 2020-11-24 10:18:04 UTC
Mass-closing of all gedit-plugins bugzilla tickets.

Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.