Replies: 4 comments 1 reply
-
Shortly after posting this, I found the section about pagers in the docs, and this makes [ui]
pager = "delta"
[ui.diff]
format = "git" I'll leave this post up because I couldn't find how to configure delta before (and I searched through discussions). One problem that's left is with the above config, |
Beta Was this translation helpful? Give feedback.
-
Loving It turns out that by default, To use jj’s default pager = ["delta", "--pager", "less -FRX"] I don’t love this either because when I look at a diff, I don’t usually want it to stick around. I only want this behavior when I’m looking at the log, and even then, I might not want it all the time. It turns out you can put the following in
Then |
Beta Was this translation helpful? Give feedback.
-
Thanks for that @david-crespo! It got me thinking about the newish [[--scope]]
--when.commands = ["diff"]
[--scope.ui]
# https://github.com/jj-vcs/jj/blob/v0.25.0/docs/config.md#processing-contents-to-be-paged
pager = "delta"
# NOTE: this is required when using `delta` as a pager
diff.format = "git" With this config, I was worried that this might break |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to get 1: detect moved code and highlight differently than just add/delete |
Beta Was this translation helpful? Give feedback.
-
I'm used to https://github.com/dandavison/delta for looking at diffs, and was wondering how to set it up with jj. I started with just setting the tool:
That results in this:
Note the very long left/right path. It can be improved like this:
What I haven't found is how to silence the warning at the end:
Has anyone figured out how? Any other tips?
Beta Was this translation helpful? Give feedback.
All reactions