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

lazygit usage? #22

Open
plutonium-239 opened this issue Jun 4, 2024 · 4 comments
Open

lazygit usage? #22

plutonium-239 opened this issue Jun 4, 2024 · 4 comments

Comments

@plutonium-239
Copy link

plutonium-239 commented Jun 4, 2024

Hi, can I use dunk with lazygit? It supports having custom pagers such as delta, diff-so-fancy that accomplish a similar goal to dunk - enhance diffs.

I tried setting the pager command (refer to the instructions for custom pager I linked) to both dunk and git diff | dunk. With dunk, the output was empty (i.e. dunk was running but received no input). So I piped git diff into it, and then I did get an output but like so:

image

, which is visibly broken.

Is there an argument I can pass to dunk/other methods that will help solve this?

(dunk is running as expected outside of the lazygit window)

@darrenburns
Copy link
Owner

git diff | dunk | less -R perhaps?

@plutonium-239
Copy link
Author

This just leaves me with
image

probably because the $TERM is dumb. But, delta also uses less -R as it's pager, how does it get past that?

@plutonium-239
Copy link
Author

@darrenburns do you have any ideas on how to make this work?

@darrenburns
Copy link
Owner

I don't use lazygit... but the documentation says less doesn't work. Does this section help? https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md#using-external-diff-commands

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

No branches or pull requests

2 participants