bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Use offical settings override UI #84

Open bcomnes opened 3 years ago

bcomnes commented 3 years ago

When you open settings, it opens a side by side with user/defaults that you can copy over easy. Sublime Standard Format doesn't seem to do that. Fix it

gacallea commented 2 years ago

the weird thing is that the Commands do work correctly. It should be an easy fix.

gacallea commented 2 years ago

here :)

[
  {
    "id": "preferences",
    "children": [
      {
        "caption": "Package Settings",
        "id": "package-settings",
        "children": [
          {
            "caption": "Standard Format",
            "children": [
              {
                "caption": "Settings",
                "command": "edit_settings",
                "args": {
                  "base_file": "${packages}/StandardFormat/StandardFormat.sublime-settings",
                  "default": "{\n\t$0\n}\n"
                }
              },
              {
                "caption": "Key Bindings",
                "command": "edit_settings",
                "args": {
                  "base_file": "${packages}/StandardFormat/Default (${platform}).sublime-keymap",
                  "default": "{\n\t$0\n}\n"
                }
              },
              {
                "caption": "-"
              },
              {
                "caption": "README",
                "command": "open_file",
                "args": {
                  "file": "${packages}/StandardFormat/README.md"
                }
              },
              {
                "caption": "-"
              },
              {
                "command": "toggle_standard_format",
                "caption": "Format On Save",
                "checkbox": true
              }
            ]
          }
        ]
      }
    ]
  }
]
gacallea commented 2 years ago

this + plus a number of compliance/standards fixed here https://github.com/bcomnes/sublime-standard-format/pull/88