[patch] Selection stats in statusbar
Jürgen Spitzmüller
jspitzm at gmail.com
Wed Aug 17 16:41:47 UTC 2022
Am Mittwoch, dem 10.08.2022 um 08:01 +0200 schrieb Daniel:
> 1. The delay timer seems not to be working as expected. Normally,
> i.e.
> in other word processors, the idea is this:
>
> While typing, no updating takes place, only once the typing stops,
> the
> update timer starts. Once typing is continued, the update timer is
> stopped. I guess this is to make sure that calculation of the
> statistics
> is very unlikely to interfere with the typing.
>
> However, as it is now, the word count gets updated sometimes while
> continuously typing. I thought that I had figured this out in my
> patch
> but maybe not. (Or that is a part where you where wondering why it
> was
> as it was.)
I agree this would be much better. Also, async calculation (via
QFuture) would probably help with managing the calculation processes
and mitigate delays.
What is not so easy, I think, is to trigger correctly when the
statistics should be updated. This is not only on typing, but also on
pasting, cutting, undo/redo, buffer loading and buffer switching. Maybe
even on internal processes (think LyXServer). I onl y had a quick look,
but I think the signals would have to be emitted from many different
places.
--
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220817/fc78dcc0/attachment.asc>
More information about the lyx-devel
mailing list