Superego

How the window is put together

The window has fixed places, and extensions put views in them. The main area shows a thread (with its panes beside it) or a space. For the API, see The window and The UI half.

The window: a title bar across the top; down the left a rail and a sidebar; the main area; a column beside it
The main area shows a thread or a space; around it are the places views go in.

Places

Each view goes where its default says, unless you moved it (right-click it, or edit ~/.superego/layout.json).

The rail's second button lit, and the sidebar marked A button in the rail marked The start of the title bar marked A chip right of the thread's title marked A column right of the thread marked A pane, a column of its own beside the thread, marked
sidebar · rail · titlebar · header · beside · pane
Place Is Example Whose
sidebar a rail button, and the sidebar it opens (one open at a time) Threads, Staff, Notes the window's
rail a rail button that isn't a sidebar Ask Ego the window's
titlebar the title bar's start, standing in when there's no sidebar the thread picker the window's
header right of the thread's title the model chip the thread's
beside a column right of the thread thread details (⌘I) the thread's
pane the thread's pane menu; the view opens as a pane Changes the thread's

The window's places are the same whatever thread is shown. A thread's places show views about that thread, and a profile's views only in that profile's threads.

Threads and panes

A pane is opened in a thread, with params (a file, a diff, a web page), and kept with it. A thread can have any number. Switch threads and you switch panes.

A thread in the main area, two panes in columns beside it
A thread, a diff pane and a file pane.

Views, panes and spaces

A view: one of it, placed by the layout, here in the sidebar Panes: opened in a thread with params, many of them A space: the main area itself, opened with params, its own thread docked beside it
A view is placed. A pane is opened in a thread. A space is opened in the window.
How many Where Opened by
View one, by its id where the layout puts it being placed
Pane any number, each with params beside its thread pane.open, the pane menu, the agent's pane_open, a file link
Space any number, each with params the main area, instead of the thread space.open, a link of its scheme (note:…), its sidebar's list

The thread list is a view. A file is a pane; a note is a space.

Spaces

A space fills the main area: a notes page, a canvas. Back and forward go through spaces as through threads; picking a thread leaves the space.

The main area shows a thread The main area shows the note a The main area shows the note b
A thread, then note:a from a link in it, then note:b linked from a. Back returns to a, then to the thread.

Each space has its own thread. Until it has one, the column offers Ask about this…: sending starts a thread on the space's profile, told what you have open. It's listed in the sidebar like any other; ↗ opens it as the thread, ✕ undocks it, and the title bar's button shows or hides it.

A space with its thread docked: a column beside it A space with its thread floating: a card over its right side
Docked: a column beside it (a notes page). Floating: a card over its right side (a canvas).

A sidebar is where you pick something; a space is the thing you picked. Notes uses both: its sidebar lists notes, and each note opens as a space with a thread docked beside it.

Notes: its list is a sidebar, the note it opens a space in the main area, a thread docked beside it
Notes. The rail's third button is its sidebar; notes.list fills the sidebar; a click opens notes.page with { name }; its thread is docked on the right.

Who may put what where

An extension draws with code (a UI half: React components) or data (a daemon half's data view: blocks the window draws, so none of the extension's code runs in the window).

Who Window places (sidebar, rail, titlebar) Thread places (header, beside, pane) Spaces
The app's bundled extensions yes yes, in every thread yes
A global profile of yours (global: true) yes yes, in every thread yes
Any other profile of yours data views only yes, in its own threads no
A project's profile no yes, in its own threads no

A global profile is part of the app: the daemon loads it at start, and the window installs its UI as the app's. Notes and Canvas are global profiles. A remote machine's profile UI still asks before its code runs in your window.

On a phone

No rail, no title bar. The open sidebar is a drawer over the thread, with the other sidebars at its foot. A thread's title opens its sheet: what the title bar and the column beside would hold. A space fills the screen, and its thread opens as the thread.

On a phone, the open sidebar is a drawer over the thread On a phone, a thread's title opens its sheet On a phone, a space fills the screen
The drawer · the thread's sheet · a space

Words

Word Means
Place a part of the window views go in: sidebar, rail, titlebar, drawer (the window's); header, beside, pane (a thread's)
View something an extension draws, by id, that the layout places
Layout where each view goes: views' defaults, then your changes (layout.json)
Sidebar a rail button and the panel it opens
Pane a column beside a thread, opened in it with params
Space a view that fills the main area, opened with params, with a thread of its own
Slot a spot inside another part (above the message box, after a thread's title in the sidebar) that extensions add to; the layout doesn't move it
UI half / daemon half an extension's code for the window, and for its machine
Data view a view drawn from blocks a daemon half sends, with no code in the window
Global profile one of your profiles that's part of the app, not only of its threads

docs/interface.md