-
Notifications
You must be signed in to change notification settings - Fork 403
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
Allow deactivate features by command line arguments #492
Comments
Hi @przepompownia, you're right that this isn't obvious currently! Try this: [delta]
features = normal-delta-usage
[delta "normal-delta-usage"]
side-by-side = true
[delta "fzf"]
side-by-side = false Now To read more about delta "custom features", see https://github.com/dandavison/delta#custom-features and dandavison/magit-delta#13 (comment). You could also look at the work-in-progress user-contributed themes file, which is implemented using custom features. Sorry, that it's a bit convoluted currently. Part of the issue is that the main rust CLI library doesn't yet support automatic negating of boolean flags via |
Hi @dandavison It is good to know about using custom feature. Thanks for explaining how to use it. It works after upgrading from 0.4.4. to 0.5.1. Setting |
Great, glad that solves it for you. |
Example: I have activated
side-by-side
in~/.gitconfig
and would like to deactivate it in some usage (e.g. when run from FZF).I did not found how to deactivate single option and to keep the rest from the config.
Some CLI-s allows deactivating their features by adding
no-
prefix.The text was updated successfully, but these errors were encountered: