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

when bypassing less, should still highlight matches as specified by --pattern #3

Open
jeisner opened this issue Sep 4, 2016 · 1 comment

Comments

@jeisner
Copy link

jeisner commented Sep 4, 2016

Would be nice to preserve the behavior of --pattern even when the output is short.

(I use --pattern in various shell aliases that run particular commands, grep their output, and highlight the grep matches.)

@stefanheule
Copy link
Owner

This is a little tricky to get right in all possible circumstances, but I've attempted a first version that supports this and you can find it here: https://github.com/stefanheule/smartless/tree/issue-3. Would you mind testing it and checking if it works for your use case? If it works, we can try and merging it back into master.

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

No branches or pull requests

2 participants