Surfaces¶
Keys inside plugin.json's windows[], tabs[] and panels[] arrays. See Windows, tabs and sidebar panels.
windows[].id¶
Unique window identifier within the plugin. Referenced by actions[].opens and urls[].opens. In Edit layout, a window launcher button uses the widget ID win:<plugin>/<id>.
windows[].title¶
Title shown in the native window titlebar, the Plugins menu and Edit layout.
windows[].page¶
Relative path to the HTML entry file inside the plugin folder (for example "ui/window.html"), served from the plugin's origin (plugin:// on Linux and macOS, http://plugin.<id>.localhost/ on Windows).
windows[].icon¶
Tabler icon name shown in the Plugins menu and when the window launcher is placed in a toolbar or sidebar (defaults to "app-window" when empty).
windows[].width¶
Initial window width in logical pixels when opened (defaults to 900, clamped to 320–4000).
windows[].height¶
Initial window height in logical pixels when opened (defaults to 640, clamped to 240–3000).
windows[].multiple¶
When true, opening this window creates a new instance every time. When false, opening it again focuses the existing open window (and delivers a fresh plugin.run message if triggered by an action or URL handler).
tabs[].id¶
Unique tab identifier within the plugin. Referenced by actions[].opens and urls[].opens as "tab:<id>", and in Edit layout as tab:<plugin>/<id>.
tabs[].title¶
Display label for the tab in the Library sidebar navigation and the toolbar title.
tabs[].page¶
Relative path to the HTML entry file inside the plugin folder, served from the plugin's origin (plugin:// on Linux and macOS, http://plugin.<id>.localhost/ on Windows) and mounted in the main center pane beside the item grid and Tag Manager.
tabs[].icon¶
Tabler icon name shown beside the tab title in the Library sidebar.
panels[].id¶
Unique identifier for a lightweight declarative sidebar panel.
panels[].title¶
Section heading shown inside the Library sidebar's Plugin panels widget.
panels[].filters¶
List of clickable query presets rendered inside the sidebar panel. Clicking a preset applies its query to the active view.
panels[].text¶
Optional short informational note displayed inside the sidebar panel.
panels[].filters[].id¶
Unique identifier for the panel filter preset within the panel.
panels[].filters[].label¶
Clickable label displayed inside the sidebar panel.
panels[].filters[].query¶
Curio query language expression executed when the user selects this preset.
Example¶
{
"windows": [
{
"id": "batch",
"title": "Batch Renamer",
"page": "ui/batch.html",
"icon": "forms",
"width": 720,
"height": 540,
"multiple": false
}
],
"tabs": [
{
"id": "board",
"title": "Moodboard",
"page": "ui/board.html",
"icon": "layout-collage"
}
],
"panels": [
{
"id": "reading",
"title": "Reading List",
"text": "Quick shelves for books and comics.",
"filters": [
{ "id": "reading-now", "label": "Currently reading", "query": "read_state = reading" },
{ "id": "unread", "label": "Unread", "query": "kind = document AND NOT read_state = finished" }
]
}
]
}