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

Highlights find matches not just in records #9105

Closed
juanPabloMiceli opened this issue May 5, 2023 · 3 comments · Fixed by #11509 · May be fixed by UPB-CS-OpenSourceUpstream/nushell#3
Closed

Highlights find matches not just in records #9105

juanPabloMiceli opened this issue May 5, 2023 · 3 comments · Fixed by #11509 · May be fixed by UPB-CS-OpenSourceUpstream/nushell#3
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers inconsistent-behavior Behavior between different commands or types inconsistent/unexpected
Milestone

Comments

@juanPabloMiceli
Copy link
Contributor

juanPabloMiceli commented May 5, 2023

Related problem

When using find, the match is only highlighted if the result comes from a record.
image

Describe the solution you'd like

I think we should highlight at least strings and lists (maybe I am missing another Value), I gave a quick look at the code and believe it shouldn't be to hard to add this feature (citation needed).

Describe alternatives you've considered

No response

Additional context and details

No response

@juanPabloMiceli juanPabloMiceli added enhancement New feature or request needs-triage An issue that hasn't had any proper look labels May 5, 2023
@juanPabloMiceli juanPabloMiceli changed the title Highlights more than matches in registers when using find Highlights more than matches in records when using find May 5, 2023
@sholderbach sholderbach added good first issue Good for newcomers inconsistent-behavior Behavior between different commands or types inconsistent/unexpected and removed needs-triage An issue that hasn't had any proper look labels May 5, 2023
@sholderbach sholderbach changed the title Highlights more than matches in records when using find Highlights find matches not just in records May 5, 2023
@fdncred
Copy link
Collaborator

fdncred commented May 5, 2023

ya, i really wrote it for tables only. it would be nice if someone picked it up and added it to --regex, lists, etc.

@athakore-personal
Copy link

Hi!

I would love to take it up as a first issue. I have just graduated and would love to start with open source. I would also appreciate some guidance! I will give this an honest effort though.

@amtoine
Copy link
Member

amtoine commented May 10, 2023

@avthakore
that's amazing 🥳
thanks for considering Nushell for your first try 😊

fdncred added a commit that referenced this issue Jan 30, 2024
this PR should close #9105

# Description
I have implemented highlights for find which work for all strings. The
implementation also works for lists, but with exceptions (for example,
it does not work for list of lists). The implementation is also not
implemented for --regex.

---------

Co-authored-by: Georgiana <geo@LAPTOP-EQP6H37N>
Co-authored-by: Darren Schroeder <[email protected]>
@hustcer hustcer added this to the v0.90.0 milestone Jan 30, 2024
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this issue Feb 20, 2024
this PR should close nushell#9105

# Description
I have implemented highlights for find which work for all strings. The
implementation also works for lists, but with exceptions (for example,
it does not work for list of lists). The implementation is also not
implemented for --regex.

---------

Co-authored-by: Georgiana <geo@LAPTOP-EQP6H37N>
Co-authored-by: Darren Schroeder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers inconsistent-behavior Behavior between different commands or types inconsistent/unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants