Thread actions menu, as T3's sidebar context menu

- . or a right-click opens T3's thread menu, built by the web's buildThreadActionMenuItems
- Settle, pin, snooze (server presets or a typed time), rename, regenerate title, mark unread,
  auto-settle, copy path/branch/thread/ID, archive, delete (confirmed), new thread on branch
- Submenus open as pickers; their items are searchable from the top
- Copy via OSC 52 plus the local clipboard tool
- Palette group keys no longer collide for untitled groups
This commit is contained in:
Callum Alpass committed 2026-11-02 19:49:23 +11:00
1 parent 925fc15a3d
commit 43347d1d58
10 files changed
+517 -15

No files matched your search

+3 -1
View File
@@ -95,6 +95,8 @@ export interface PickerItem {
readonly title: string;
/** Shown on the right: "current", a provider, a status. */
readonly hint?: string;
/** Only listed once you type: a submenu's items, found from the top. */
readonly searchOnly?: boolean;
readonly run: () => void;
}
@@ -114,7 +116,7 @@ export function pickerGroups(picker: Picker, query: string): PaletteGroup[] {
.filter((candidate) => candidate.match !== null)
.sort((a, b) => b.match!.score - a.match!.score)
.map(({ item }) => item)
: group.items;
: group.items.filter((item) => !item.searchOnly);
return { label: group.label, entries: items.map((item): PaletteEntry => ({ kind: "command", command: { id: item.id, title: item.title, ...(item.hint ? { shortcut: item.hint } : {}) } })) };
})
.filter((group) => group.entries.length > 0);