From: Joost Kremers <joostkremers@fastmail.fm>
To: emacs-devel@gnu.org
Subject: Make isearch show number of invisible matches
Date: Fri, 24 Jun 2022 22:19:51 +0200 [thread overview]
Message-ID: <87bkuhiyr1.fsf@fastmail.fm> (raw)
Hi,
The consult package has a command `consult-focus-lines` which is a bit like
`keep-lines`, except that it doesn't actually delete non-matching lines from the
buffer, it just hides them using overlays with an `invisible` property.
Running `isearch` in such a buffer does the Right Thing, in that it doesn't try
to move point to invisible matches. There's a slight hiccup, though, in the fact
that the pre- or suffix shows the total number of matches in the buffer,
including the ones that are not visible, so there is no way to see how many
*visible* matches there are.
Is it possible to add this information to the isearch pre/suffix? What would be
most useful to me, would in fact be if both the total number of matches and the
number of visible matches would be shown.
I assume this is currently not possible, so I would like to submit this as a
feature request.
Thanks,
Joost
--
Joost Kremers
Life has its moments
next reply other threads:[~2022-06-24 20:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 20:19 Joost Kremers [this message]
2022-06-27 19:45 ` Make isearch show number of invisible matches Juri Linkov
2022-06-27 19:53 ` T.V Raman
2022-06-27 21:29 ` Rudolf Schlatte
2022-06-28 0:14 ` T.V Raman
2022-06-28 0:17 ` T.V Raman
2022-06-27 21:05 ` Joost Kremers
2022-06-28 17:05 ` Juri Linkov
2022-06-28 17:18 ` Eli Zaretskii
2022-07-08 17:47 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkuhiyr1.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).