Clears the underlying Chromium HTTP cache. Resolves once the cache is empty.
Closes the current window.
Opens a new top-level Trilium window navigated to the given hash route.
The URL hash fragment (without the leading #) for the new window.
Returns the current page zoom factor (1.0 = 100%).
Synchronously returns whether the window is pinned above all others.
Synchronously returns whether DevTools is currently open and docked into this window (as opposed to detached into a separate window).
Synchronously returns whether the window is currently in full-screen mode.
Synchronously returns whether the window is currently maximized.
Maximizes the current window to fill the available screen area.
Minimizes the current window to the taskbar / dock.
Subscribes to changes of the DevTools docking state. docked is true only while
DevTools is attached to this window — where Chromium disables the native window
material (Mica / vibrancy) — and false when it is closed or in a separate window.
Registers a callback fired whenever the window enters full-screen mode.
Subscribes to globally registered keyboard shortcuts. The callback receives the logical action name (not the keystroke).
Registers a callback fired whenever the window leaves full-screen mode.
Subscribes to "open note in active tab" requests originating from outside the renderer (e.g. tray menu, deep links).
Triggers a hard reload of every open Trilium window.
Reports a renderer startup milestone to the main process, which records it relative to OS process creation alongside the main-process startup metrics. Only the first report of each metric is recorded; later reports (e.g. after a window reload or from extra windows) are ignored.
Quits the app and immediately relaunches it.
Toggles the always-on-top (pinned) state of the window.
Sets the Windows 11 backdrop material (e.g. "mica", "acrylic", "tabbed", "none")
applied behind the window contents. No-op on other platforms.
Enters or leaves full-screen mode.
Overrides the operating system's reported color scheme for this app.
Use "system" to follow the OS setting.
Customizes the colors of the Windows native title bar overlay (the area containing the minimize / maximize / close buttons).
Sets the macOS vibrancy effect (e.g. "sidebar", "under-window", "fullscreen-ui")
applied behind the window contents. No-op on other platforms.
Repositions the macOS traffic-light window buttons. Coordinates are in CSS pixels relative to the window's top-left corner.
Sets the page zoom factor for the current window.
1.0 is 100%; e.g. 1.2 zooms to 120%.
Brings the main window to the foreground, restoring it if minimized.
Shows all hidden windows or hides all visible ones — used by the "show/hide app" global shortcut and tray menu entry.
Opens or closes Chromium DevTools for the current window.
Restores the window from a maximized state to its previous size.
Window-level controls: zoom, theme, title bar, full screen, lifecycle, and a handful of main → renderer event subscriptions.