radian-software / ctrlf

⌨️ Emacs finally learns how to ctrl+F.
MIT License
347 stars 22 forks source link

Expose match count/index for modeline segments? #120

Open indigoviolet opened 2 years ago

indigoviolet commented 2 years ago

Does ctrlf expose its current search state anywhere for use in segments like https://github.com/seagle0128/doom-modeline/blob/master/doom-modeline-segments.el#L1222 ?

My experimentation and skimming of the code suggested that it constructs its overlays lazily, so that I can't just count the number of overlays.

raxod502 commented 1 year ago

I do not believe these stats are exposed in a friendly way, but they could/should be. Sorry for the inconvenience.