Skip to content

🐛 Some theme options are not working with --color-only enabled #405

@renard

Description

@renard

When running delta in a standalone mode (no git) with --color-only to keep a diff / patch compatible patch some theming options such as --file-style or --hunk-header-style (same with --hunk-header-decoration-style) are not operational:

Screenshot 2020-11-23 at 14 58 17

Screenshot 2020-11-23 at 14 59 53

Is there a way to highlight file headers and hunks delimiter in a specific colour?

Diff file:

--- 1	2020-11-23 12:51:34.434055926 +0000
+++ 2	2020-11-23 12:52:06.242055415 +0000
@@ -11,7 +11,7 @@
                                      style plain --hunk-style plain`.
         --dark                       Use default colors appropriate for a dark terminal background. For more control,
                                      see the other color options.
-    -h, --help                       Prints help information
+    -h, --HELP                       Prints help information
         --highlight-removed          Apply syntax highlighting to removed lines. The default is to apply syntax
                                      highlighting to unchanged and new lines only.
         --keep-plus-minus-markers    Prefix added/removed lines with a +/- character, respectively, exactly as git does.

TIA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions