feat(v2): add session groups with collapsible sidebar headers
Add group_name column to sessions table with ALTER TABLE migration, setPaneGroup in layout store, grouped sidebar rendering with Svelte 5 snippets, and right-click to assign group via prompt dialog.
This commit is contained in:
parent
f349f3bb14
commit
035d4186fa
5 changed files with 144 additions and 7 deletions
|
|
@ -7,6 +7,7 @@ export interface PersistedSession {
|
|||
shell?: string;
|
||||
cwd?: string;
|
||||
args?: string[];
|
||||
group_name?: string;
|
||||
created_at: number;
|
||||
last_used_at: number;
|
||||
}
|
||||
|
|
@ -36,6 +37,10 @@ export async function touchSession(id: string): Promise<void> {
|
|||
return invoke('session_touch', { id });
|
||||
}
|
||||
|
||||
export async function updateSessionGroup(id: string, groupName: string): Promise<void> {
|
||||
return invoke('session_update_group', { id, group_name: groupName });
|
||||
}
|
||||
|
||||
export async function saveLayout(layout: PersistedLayout): Promise<void> {
|
||||
return invoke('layout_save', { layout });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue