delta icon indicating copy to clipboard operation
delta copied to clipboard

Support For Property List (PList) Format

Open Gerst20051 opened this issue 3 years ago • 1 comments

Syntax Highlighting For The Output From defaults read

[$]> defaults read com.googlecode.iterm2

{
    AppleAntiAliasingThreshold = 1;
    "Default Bookmark Guid" = "AD854671-C976-4C5D-9EA2-BD69DF273EF4";
    "NSSplitView Subview Frames NSColorPanelSplitView" =     (
        "0.000000, 0.000000, 224.000000, 258.000000, NO, NO",
        "0.000000, 259.000000, 224.000000, 48.000000, NO, NO"
    );
    "NSToolbar Configuration com.apple.NSColorPanel" =     {
        "TB Is Shown" = 1;
    };
    "iTerm Version" = "3.4.15";
}

https://en.wikipedia.org/wiki/Property_list

I believe this has already been implemented in some other tools! They appear to be using the same file.

Textmate

https://github.com/textmate/property-list.tmbundle/blob/textmate-1.x/Syntaxes/Property%20List.tmLanguage

Sublime

https://github.com/tyrone-sudeium/st3-binaryplist/blob/master/Property_List.tmLanguage

Bat Issue https://github.com/sharkdp/bat/issues/2247

Gerst20051 avatar Jul 20 '22 09:07 Gerst20051

Hi @Gerst20051, thanks for opening the issue here and in bat. Delta uses the collection of language syntax definitions distributed in the bat crate, so when it's available there, we can close this issue with a bat crate version bump. (It's pretty easy to add the syntax definition to the bat collection, so if you felt like making the bat PR I imagine they'd appreciate it.)

dandavison avatar Jul 20 '22 13:07 dandavison