Open nikbrunner opened 1 year ago
Hmmm... not sure what the issue could be here. I tried your config and it worked for me.
$SHELL "git diff {} | delta"
is the command that's run when the preview mode is on. Can you try running that in your terminal and see if it works?
Hmmm... not sure what the issue could be here. I tried your config and it worked for me.
$SHELL "git diff {} | delta"
is the command that's run when the preview mode is on. Can you try running that in your terminal and see if it works?
Hey, thank you for your reply. :)
I get this:
terra-core.nvim on î‚ main [$!]
[I] ➜ $SHELL "git diff {} | delta"
/bin/zsh: can't open input file: git diff {} | delta
Sorry for the drawn-out response. Can you try substituting {}
with a file path that's been modified that git is tracking, and then seeing what the output is? I mostly just want to see if it works or not.
Maybe try putting this in your config, as well:
[preview]
git_pager = "delta --color-only"
Also, can I see your delta config?
Hi there. No worries, I was also on vacation, so I apologize for the late response. :)
I identified the issue. It was my fault; I was unaware that I had to press t to enable the Diff View. When I press t, the Diff Preview with Delta works. Is there a configuration option to automatically toggle the Diff Preview with Delta?
Hi there, this is my second issue I noticed after upgrading to
1.3.0
. (My first is this one: #19)I want to use
delta
for the Diff Preview, but I can't get it to work. It works inlazygit
though. 🤔 I hope you can help me. :)Screenshots
This is the Diff Preview when I am in![Screenshot 2023-07-03 at 09 32 33](https://github.com/dzfrias/projectable/assets/46924729/3f5f767b-743d-41ac-ac9a-232b04b2d155)
prj
:This is the Diff Preview when I use the![Screenshot 2023-07-03 at 09 51 25](https://github.com/dzfrias/projectable/assets/46924729/6a05fcfa-5871-4067-bba5-837ca3b68bed)
preview_cmd
setting from your config (preview_cmd = "bat --force-colorization {} --line-range 0:1000"
+git_pager = "delta"
):This is the Diff Preview when I am in![Screenshot 2023-07-03 at 09 32 28](https://github.com/dzfrias/projectable/assets/46924729/75845dc6-e40f-40e2-ac65-1d382a7ad833)
lazygit
:Version
Config