Replies: 2 comments 2 replies
-
I managed to get it to work but it feels like I might be doing something wrong. In my rc file I'm now using Then if I call The issue is you have to define both together. It's also possible to do I thought maybe I could have done Is this a bug or is something not documented? |
Beta Was this translation helpful? Give feedback.
-
Hi @nickjj!
This is technically documented here I think: https://dandavison.github.io/delta/features-named-groups-of-settings.html
And I absolutely agree, toggling them on and off independently via the space-separated-string env var is not a fun experience if done manually. So far my pain with this has led me to write the Python script linked at https://dandavison.github.io/delta/tips-and-tricks/toggling-delta-features.html As I say there, I could see perhaps that being moved into Rust, something like eval "$(delta toggle side-by-side)" perhaps? Open to design ideas and PR contributions! |
Beta Was this translation helpful? Give feedback.
-
In my shell's rc file I put
export DELTA_FEATURES="+diff-so-fancy"
and then my git config doesn't need to always supply that flag. This is handy because I sometimes use delta directly with fzf and this strategy works there too. I figured this would be preferred over aliasingdelta
todelta --diff-so-fancy
since shell aliases don't get picked up when using git commands or when calling delta in other scripts.But now I'd like to sometimes enable side-by-side mode on demand when running various diff related commands.
I thought I could do this, but neither of these work as expected:
I couldn't find any references in the docs on how to apply more than 1 feature.
If I set
--side-by-side
directly as a CLI option to Delta or define it in[delta]
within my git config then it works but I want to avoid always having that set. But this at least demonstrates the feature can co-exist with diff-so-fancy.Beta Was this translation helpful? Give feedback.
All reactions