unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: emacs-devel@gnu.org
Subject: Re: Make isearch show number of invisible matches
Date: Mon, 27 Jun 2022 22:45:47 +0300	[thread overview]
Message-ID: <86h745nb4k.fsf@mail.linkov.net> (raw)
In-Reply-To: <87bkuhiyr1.fsf@fastmail.fm> (Joost Kremers's message of "Fri, 24 Jun 2022 22:19:51 +0200")

> 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 for the feature request, actually it's bug#40808
that's still not closed due to problems in Org mode.

And now I'm not sure if this should be implemented at all,
because displaying the number of all matches helped me
many times.  For example, it helped greatly when searching
for a text that is part of the link in Org mode, so it
provided very useful information about the real number
of matches even when these matches can't be visited.
But when isearch show that they exists, it's possible
to edit these matches using Org commands such as a link edit
with `C-c C-l'.



  reply	other threads:[~2022-06-27 19:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 20:19 Make isearch show number of invisible matches Joost Kremers
2022-06-27 19:45 ` Juri Linkov [this message]
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=86h745nb4k.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /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).