Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't jump to invisible text #117

Open
joostkremers opened this issue Jun 22, 2022 · 1 comment
Open

Don't jump to invisible text #117

joostkremers opened this issue Jun 22, 2022 · 1 comment

Comments

@joostkremers
Copy link

joostkremers commented Jun 22, 2022

The consult package has a command consult-focus-lines that hides lines by applying a user-defined filter. The hidden lines are still in the buffer, they're just made invisible using overlays (IIUC).

If I start searching in such a filtered buffer with ctrlf and move through the matches with a repeated C-s, point jumps to the invisible matches as well, which means that you lose point, because the cursor becomes invisible.

isearch doesn't have the same issue, point only moves to the visible matches.

What would also be nice is if the match count could show not only the current match and the total number of matches, but also the number of (in)visible matches, e.g., by showing something like [5/40] (20 hidden) in the match count.

@joostkremers joostkremers changed the title Don't try to jump to invisible text Don't jump to invisible text Jun 22, 2022
@raxod502
Copy link
Member

Oof, yeah. I think that's quite reasonable. There is already some support in ctrlf for handling org folding and such, but that probably has to be extended a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants