Skip to content

Allow comments in configuration files #75

Closed as not planned
Closed as not planned

Description

@Seb-GRAF

Problem

Configurations grow long, and JSON has no comments, so there's nowhere to note why a widget or color is set the way it is. A "_comment" key doesn't work either, because unknown properties are errors. SketchyBar's shell configuration and Barik's TOML both allow comments.

Proposal

  • Accept // and /* */ comments, and trailing commas, in the main file, includes and packages.
  • JSONDecoder reads them with allowsJSON5, which also accepts other JSON5 syntax. Decide whether to allow all of it, or only comments and trailing commas.
  • Customize and command-line edits keep comments in place. ConfigurationEdits.swift already parses the file to keep its formatting and key order, so its parser needs to carry comments too.

Possible today

No. A comment makes the file invalid, and StableBar keeps the last working configuration.

Related

None found.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 19, 2026
  2. added
    P3
    on Nov 8, 2026
  3. Seb-GRAF commented on Nov 11, 2026

    @Seb-GRAF
    CollaboratorAuthor

    Settings is the main way to edit now, and keeping comments through ConfigurationEdits is a lot of parser work for little

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions