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

Search whole file #33

Closed
SevereOverfl0w opened this issue Jan 31, 2021 · 3 comments · Fixed by #35
Closed

Search whole file #33

SevereOverfl0w opened this issue Jan 31, 2021 · 3 comments · Fixed by #35
Labels
enhancement New feature or request

Comments

@SevereOverfl0w
Copy link

Maybe related to #3?

I'm using this to perform topical searches in a wiki folder of markdown files (show me articles where code review and clojure are both mentioned).

Here's a dumb example of something that doesn't work that I'd like to have work:

❯ echo 'foo qux\nbar' | lmgrep 'foo && bar'

In this case, I'm less concerned about having line numbers than I am of just knowing which files matched.

@dainiusjocas
Copy link
Owner

Currently, the text is segmented into lines and is searched line by line. With #16 lmgrep will expose a pattern on which to split the file or not to split at all.

@dainiusjocas
Copy link
Owner

@SevereOverfl0w this change is released.

echo 'foo qux\nbar' | ./lmgrep 'foo && bar' --no-split
*STDIN*:1:foo qux
bar

Try it out: https://github.com/dainiusjocas/lucene-grep/releases/tag/v2021.02.02

@SevereOverfl0w
Copy link
Author

This is great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants