waveterm/pkg/wconfig
Myles J. cca18eefa4
Proposal: Add ability to hide widgets via config (#1864)
👋 Hello, I'm not sure if this warranted an Issue first but it seemed
small enough to just raise a PR. I'm happy to add something to the
documentation as well if you agree with the proposal.

There are some widgets that I'd rather not be displayed in the sidebar -
at the moment these are default widgets for which I cannot see any
existing means of omitting them via configuration. I'm proposing a
`display:hidden` field on the widget settings such that I can configure
the following:

```json
{
    "defwidget@ai": {
        "display:hidden": true
    }
}
```

I'm considering this option to be distinct from any means of outright
"disabling" the widget - that is to say that I've not chosen to filter
the widgets from the configuration because I'm not fully aware of the
project goals. Where for example I imagine that it might be useful to be
able to interact with a widget or it's config via the CLI or shortcut
regardless of visibility?

<img width="1421" alt="example"
src="https://github.com/user-attachments/assets/7cafa942-727d-4140-8940-38b4022f2ef0"
/>
2025-02-03 14:50:18 -08:00
..
defaultconfig Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
filewatcher.go Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
metaconsts.go add term:allowbracketedpaste, default false (#1688) 2025-01-07 10:55:26 -08:00
settingsconfig.go Proposal: Add ability to hide widgets via config (#1864) 2025-02-03 14:50:18 -08:00