Documentation
¶
Overview ¶
Package uifocus is the one-shot handoff from the CLI to a running UI. The CLI writes a hash; the desktop app or a serve tab reads and deletes it. The file lives next to the profile's config — not in SQLite — so a sync cannot wipe a pending focus and a snapshot cannot carry one.
Index ¶
Constants ¶
View Source
const MaxAge = 2 * time.Minute
MaxAge is how long a focus request stays valid. Older files are ignored so a leftover from yesterday cannot yank the list when the app next opens.
Variables ¶
This section is empty.
Functions ¶
func TakeFor ¶
TakeFor returns a still-fresh hash and deletes the file. ok is false when there is nothing to apply (missing, empty, or stale). Workspace mounts pass the /w/<name> segment so they do not consume the process-primary file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.