[patch] Selection stats in statusbar
Jürgen Spitzmüller
jspitzm at gmail.com
Thu Aug 18 07:55:50 UTC 2022
Am Mittwoch, dem 17.08.2022 um 19:40 +0200 schrieb Daniel:
> What I did in
>
> https://www.lyx.org/trac/attachment/ticket/12422/0001-Show-word-count-in-status-bar.patch
>
> was just to hook it on GuiView::showMessage() because this would be
> updated in all cases where text stuff changes.
showMessage() is triggered on any cursor action. That's way too often.
E.g., it would fire down statistics unnecessarily if you move with the
arrow keys through your document.
And I am not completely sure each relevant action triggers a message.
You need a more suitable signal that only emits when text is edited or
loaded.
> I don't know what the "internal processes" are though.
You can use lfuns e.g. via the LyXServer mechanism or pipes. This can
also be used to insert text or citations.
--
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/20220818/20980f20/attachment-0001.asc>
More information about the lyx-devel
mailing list