View Single Post
Old 02-26-2022, 09:52 AM   #40
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 819
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
I usually use Count All with All HTML files selected to decide if it's worth the trouble of writing a regex S&R rather than replacing things one by one. If you can figure out a way to leave the focus on the current file even though All HTML files are selected, it would help immensely. Thanks for looking into it.

Quote:
Originally Posted by KevinH View Post
CountAll just performs the search but does not make any changes. If used in Current File mode, it should not take focus away. If it does that is a bug and I will try to track it down and fix it.

If it is used with All HTML files it will work just like searches do now in that mode.

All of that said, I will look into trying to remember where the current cursor is before any count and try to restore it as counting really should not change anything since no changes are actually made (meaning any cursor position and file info is still correct).

Let me try that. Perhaps that will help. If so, we can push that out in a Sigil-1.9.1 along with a few other minor bug fixes I have.

Thanks,

KevinH
icallaci is offline   Reply With Quote