Update editor, workspace, Git services, appearance, and project guides

This commit is contained in:
Knotty Wyvern
2026-10-11 09:41:16 -07:00
parent a8b1defb9d
commit 909894b9c8
153 changed files with 7967 additions and 775 deletions
+11 -8
View File
@@ -19,8 +19,8 @@ export function workspaceOpen(path: string): Promise<WorkspaceInfo> {
return invoke("workspace_open", { path });
}
export function workspaceOpenWindow(path: string): Promise<void> {
return invoke("workspace_open_window", { path });
export function workspaceOpenWindow(path: string, transfer?: string): Promise<void> {
return invoke("workspace_open_window", { path, transfer });
}
export function workspaceLastPath(): Promise<string | null> {
@@ -35,8 +35,8 @@ export function workspaceNew(parent: string, name: string): Promise<void> {
return invoke("workspace_new", { parent, name });
}
export function workspaceList(rel: string): Promise<TreeEntry[]> {
return invoke("workspace_list", { rel });
export function workspaceList(rel: string, showInternal = false): Promise<TreeEntry[]> {
return invoke("workspace_list", { rel, showInternal });
}
export function workspaceRead(rel: string): Promise<string> {
@@ -55,8 +55,8 @@ export function workspaceCreate(rel: string, kind: "file" | "folder"): Promise<v
return invoke("workspace_create", { rel, kind });
}
export function workspaceRename(from: string, to: string): Promise<void> {
return invoke("workspace_rename", { from, to });
export function workspaceRename(from: string, to: string, expectedRoot?: string): Promise<void> {
return invoke("workspace_rename", { from, to, expectedRoot });
}
export function workspaceDelete(rel: string): Promise<void> {
@@ -77,14 +77,17 @@ export type CopyResult = {
kind: "file" | "folder";
};
export function workspaceCopy(rel: string): Promise<CopyResult> {
return invoke("workspace_copy", { rel });
export function workspaceCopy(rel: string, parent?: string, expectedRoot?: string): Promise<CopyResult> {
return invoke("workspace_copy", { rel, parent, expectedRoot });
}
export function workspaceAbsPath(rel: string): Promise<string> {
return invoke("workspace_abs_path", { rel });
}
export function workspaceOpenDefault(rel: string): Promise<void> { return invoke("workspace_open_default", { rel }); }
export function workspaceOpenTerminal(rel: string): Promise<void> { return invoke("workspace_open_terminal", { rel }); }
export function workspaceReveal(rel: string): Promise<void> {
return invoke("workspace_reveal", { rel });
}