Coder Social home page Coder Social logo

Comments (7)

stevemao avatar stevemao commented on May 9, 2024

πŸ‘ Ideally I don't wanna maintain diff-highlight. Wish we could reference that dependency from the official git repo somehow.

from diff-so-fancy.

paulirish avatar paulirish commented on May 9, 2024

yeah understood.
i dont know of an easy way.

I just explored trying to use diff-highlight from the machine, but i'm not sure how to do that on non-homebrew installs.

tbh, the simplest looks to be just writing a stupid script to pull the latest diff-highlight from the git repo every once in a while. it doesnt change a lot so no biggie.

from diff-so-fancy.

paulirish avatar paulirish commented on May 9, 2024

here's my proposal in #13

from diff-so-fancy.

stevemao avatar stevemao commented on May 9, 2024

Found a problem in #13 (sorry didn't see it earlier). We assume the diff_highlight path is ./third_party/diff-highlight/diff-highlight which might not be the case. npm link won't work. Documentation

Grab the two scripts (diff-highlight and diff-so-fancy) via either downloading or cloning the repo.
Place them in a location that is in your PATH.

Is incorrect.
We don't really know the path of our hard dependency diff-highlight

from diff-so-fancy.

stevemao avatar stevemao commented on May 9, 2024

Maybe we just use which diff-highlight?

from diff-so-fancy.

xixixao avatar xixixao commented on May 9, 2024

Why not just let people install and pipe themselves?

git diff --color | diff-highlight | diff-so-fancy

from diff-so-fancy.

stevemao avatar stevemao commented on May 9, 2024

We want to load diff-hight internally in diff-so-fancy.

from diff-so-fancy.

Related Issues (20)

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.