Giter VIP home page Giter VIP logo

Comments (3)

huytd avatar huytd commented on June 6, 2024 1

Hey, thank you so much for the feedback! I've pushed a new commit to fix this issue.

With -l 0:
image

With -l 2:
image


Regarding the issue that outputs don't match for 1 & 2, I think it's an expected behavior, since the match is at the top of the file, the case -l 1 should show the match at line 2, and line 1 and 3 as a margin. The case -l 2, it should show the margin lines up to line 4 in the bottom, and on top, the minimum will be line 1, right? Or I missed anything? :D

from comby-search.

el10savio avatar el10savio commented on June 6, 2024 1

Hey @huytd,

Thank you so much for the fix. I will pull the latest version and test it out.

Yep, I rechecked for the cases of -l 1 & 2, and it makes sense. I'll strikethrough the issue description since its not a bug.

Closing the issue since it's fixed.

from comby-search.

el10savio avatar el10savio commented on June 6, 2024 1

Tested and it works perfectly.

$ cb -l 0 -f '*.txt' 'cat'  
test.txt
   2 │ cat
$ cb -l 1 -f '*.txt' 'cat'
test.txt
   1 │ a
   2 │ cat
   3 │ in

from comby-search.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.