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

Highlight matches #53

Closed
wants to merge 1 commit into from
Closed

Highlight matches #53

wants to merge 1 commit into from

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Sep 15, 2017

First working prototype with underlining to highlight the matched part of the file path.

image

TODO:

  • Only works for fd -p, so far.
  • The code is horrible.
  • Doesn't seem to work on Rust 1.16 (but could be fixed easily)

I'm not sure that I like this better than the non-highlighted version.

@sharkdp sharkdp changed the title Highlight matches, see #46 Highlight matches Sep 15, 2017
@sharkdp
Copy link
Owner Author

sharkdp commented Oct 7, 2017

I'm going to close this, as I don't really like how (a) the output looks like and (b) the code looks like 😄

@epitron
Copy link

epitron commented May 17, 2018

This patch is also missing the ability to highlight multiple matched segments (eg: matching "a" in "foo bar baz").

If you don't like how the underline looks, another option would be to change the background colour -- that can also be done independently of the foreground colour...

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

Successfully merging this pull request may close these issues.

None yet

2 participants