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

Add delta to related projects #707

Closed

Conversation

dandavison
Copy link
Contributor

@sharkdp This PR adds my project delta to the list of related projects.

Delta is related to bat in that it honors BAT_PAGER, and it uses exactly the same mechanism of including binary syntax and theme definition files (In fact, the delta README instructs users to use bat to create new versions of these files), and I plan to add support for reading custom syntax/theme files from ~/.cache/bat (dandavison/delta#19). Indeed, delta copies some of your code to do this! I plan to investigate whether I can avoid some of the copying by using bat's new library architecture.

Also, when I first heard of bat and that it had git integration, one thing I wondered was whether bat would syntax-highlight diffs sections according to their language. So it may also make sense to list delta as a related project on the basis that others may have the same thought.

@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2019

Hi @dandavison

I've been using delta for a few days now and I really like it! I'm happy to add a reference to your project somewhere, but I'm not sure if this is the best place? Is delta really an "alternative to bat"? I would rather see it as a complement.

@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2019

I plan to investigate whether I can avoid some of the copying by using bat's new library architecture.

I think that would be a good idea, something that both projects will profit from. Note that the bat-as-a-library story is not completely finished (see #693).

Also, concerning deltas core functionality, note that there is a prominent feature request (#23) here which is somehow related (but definitely not a replacement for delta).

@dandavison
Copy link
Contributor Author

Is delta really an "alternative to bat"? I would rather see it as a complement.

Thanks, yes, you're right, it's definitely a complement not an alternative. I wasn't familiar with vimpager and lesspipe but now I see that they fit into the "alternative" camp, rather than merely "related". So let's close this PR.

Also, concerning deltas core functionality, note that there is a prominent feature request (#23) here which is somehow related (but definitely not a replacement for delta).

Ah that's interesting, I'd overlooked that. I'll comment in that thread.

@dandavison dandavison closed this Oct 29, 2019
@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2019

if you like, you could add a new subsection to the "integration with other tools" section: https://github.com/sharkdp/bat#integration-with-other-tools

something like:

as a git pager

You can use bat as a git pager, by adding …

Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out delta.

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.

2 participants