[PowerShell] Delta works, but the Diff seems not do be correct - How to setup correctly #1915
-
Hi, I think I miss something about setting up delta properly on Windows with PowerShell. When I execute Here is how I setup deltawinget install dandavison.delta
winget install jftuga.less This less-version is exposed via PATH
less --version
less 668 (Spencer V8 regular expressions)
Copyright (C) 1984-2024 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less Here is how I configured delta in git
I am glad for any hint. :-) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I also checked with a TypeScript-File, because I thought, maybe it helps delta if more context like Syntax is present. [delta]
navigate = true
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
- features = zebra-dark unobtrusive-line-numbers decorations
+ features = zebra-dark diff-highlight unobtrusive-line-numbers decorations |
Beta Was this translation helpful? Give feedback.
-
Hi @GregOnNet, that all looks correct. You get a "minus" line and a "plus" line, just like with normal git diff. For syntax highlighting you need to remove diff-highlight. In fact I'd recommend trying with minimal settings to start off with and then only adding more if you need them. |
Beta Was this translation helpful? Give feedback.
-
Thanks @dandavison , yeah my expectation was incorrect. I tried once more with more changes and now I also get the nice decoration, in which Method the changes has been made. |
Beta Was this translation helpful? Give feedback.
Hi @GregOnNet, that all looks correct. You get a "minus" line and a "plus" line, just like with normal git diff. For syntax highlighting you need to remove diff-highlight. In fact I'd recommend trying with minimal settings to start off with and then only adding more if you need them.