Settings
What it is
Section titled “What it is”wdx’s settings live in one file, ~/.wdx/config.yaml, which wdx writes itself: every setting with its description as a comment, the ones you set with their values, the others commented out with their defaults. wdx setting set changes one and applies it at once. The settings reference lists them all.
Try it
Section titled “Try it”$ wdx setting get --name log.levellog.level info description lowest level logged: debug, info, warn, error default info from default$ wdx setting set --name log.level --value debugset log.level to debug the daemon applied it$ wdx setting listhome /home/you/.wdx WDX_HOMEno_input false defaultcolor auto defaultlog.level debug /home/you/.wdx/config.yaml:16log.retention_days 7 defaultotel.endpoint http://localhost:4318 default...from says where each value comes from: its default, a line of the config file, or the environment.
In TIDE
Section titled “In TIDE”C-q s opens the settings tab: every setting with its value and description, to change in place. TIDE’s own settings, its colors and the order of the left pane’s sections, apply at once. More in Settings in TIDE.
How it behaves
Section titled “How it behaves”- Layers. Defaults, then the config file, then the environment, later winning. Only the home comes from the environment,
WDX_HOME, as the config file lives in it. - Applied at once.
setting setchecks the value, saves it, and has the daemon read the file again; every later command reads it anyway. Terminals already running keep their shell and history limit. The answer says whether the daemon applied it, was not running, or needs a restart. - Nested keys make the dotted key:
log: {level: debug}islog.level. - Written, not edited.
setting setandsetting writewrite the whole file anew from wdx’s table of settings, so comments of your own are not kept. Keys no setting has, as one an older version had, are moved, commented out, to the end of the file.wdx updatewrites it the same way with the new release’s settings. - Editing by hand works too: run
wdx daemon restartafter. - Checked. An invalid value, an unknown key or a duplicate fails every command at startup, naming the file and line.
Commands
Section titled “Commands”| Command | What it does |
|---|---|
wdx setting list | List every setting with its value |
wdx setting get | Show one setting |
wdx setting set | Change a setting and apply it at once |
wdx setting write | Write the config file anew, listing every setting of this version |