Skip to content

switch config format from json to toml #88

@moiSentineL

Description

@moiSentineL

json is dead. toml is the new meta.

{
    "default_session_data": {
        "tag": "work",
        "name": "Working",
        "ratio": 5
    },
    "notification_priority": "normal",
    "tag_colors": {
        "work": "red",
        "study": "blue",
        "exercise": "green",
        "coding": "aquamarine3",
        "video": "aquamarine3"
    }
}

vs

[defaults]
tag = 'work'
name = 'working'
divisor = 5

[notifications]
priority = 'Normal'
sound = 'path/to/file'

[tags]
work = "red"
study = "blue"
exercise =  "green"
coding =  "aquamarine3"
video = "aquamarine3"

clean.

https://realpython.com/python-toml/#use-toml-as-a-configuration-format

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