feat: Allow to disable showing paths to folders (#1274)

https://github.com/Termix-SSH/Support/issues/1274
This commit is contained in:
LukeGus committed 2026-09-20 18:17:29 -05:00
1 parent 6ce5e78165
commit d0c25cf183
7 files changed
+46 -1

No files matched your search

+7
View File
@@ -49,6 +49,8 @@ export interface HostSidebarDisplayPreferences {
statusColorScheme: StatusColorScheme;
/** When true, a host row needs a double click to launch its session. */
openOnDoubleClick: boolean;
/** When false, nested folders hide the parent-path breadcrumb before their name. */
showFolderPaths: boolean;
}
export interface HostSidebarPreferences {
@@ -130,6 +132,7 @@ export function defaultHostSidebarPreferences(): HostSidebarPreferences {
trayTrigger: "always",
statusColorScheme: "accent",
openOnDoubleClick: false,
showFolderPaths: true,
},
};
}
@@ -203,6 +206,10 @@ export function sanitizeHostSidebarPreferences(
typeof displayObj.openOnDoubleClick === "boolean"
? displayObj.openOnDoubleClick
: defaults.display.openOnDoubleClick,
showFolderPaths:
typeof displayObj.showFolderPaths === "boolean"
? displayObj.showFolderPaths
: defaults.display.showFolderPaths,
};
return {