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

What would it take to support searching newlines? #203

Open
robert-e-davidson3 opened this issue Oct 11, 2021 · 1 comment
Open

What would it take to support searching newlines? #203

robert-e-davidson3 opened this issue Oct 11, 2021 · 1 comment

Comments

@robert-e-davidson3
Copy link

I get an error when I select a region with multiple lines and try to search it. The source code makes it clear this is intentional but doesn't explain why. Also, when I add a newline with c-q c-j, it behaves strangely.

I can't find anything about why multiple lines are unsupported for search. The builtin isearch works but there's a reason I use helm-swoop.

Is there some deep reason this is unsupported? If not, can I get some guidance? I'm willing to make the changes myself if it isn't an immense effort.

Thanks!

@alphapapa
Copy link

@robert-e-davidson3 FYI, if you want to work on something like this, you might consider using this as a starting point instead of helm-swoop: https://gist.github.com/alphapapa/ce6cf8a85d8a28c3a2f146057772ec8d IME it's much faster (although because of that, I stopped using helm-swoop years ago, so maybe it's improved since then).

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