Download packages/app/src/utils/file-manager.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/utils/file-manager.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/app/src/utils/file-manager.ts
-
curl -L -o file-manager.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/utils/file-manager.ts
870 Bytes
| export type FileManagerOS = "macos" | "windows" | "linux" | "unknown" | |
| export function fileManagerApp(os: FileManagerOS): { | |
| label: "session.header.open.finder" | "session.header.open.fileExplorer" | "session.header.open.fileManager" | |
| actionLabel: | |
| | "session.header.reveal.finder" | |
| | "session.header.reveal.fileExplorer" | |
| | "session.header.reveal.containingFolder" | |
| icon: "finder" | "file-explorer" | |
| } { | |
| if (os === "macos") | |
| return { label: "session.header.open.finder", actionLabel: "session.header.reveal.finder", icon: "finder" } | |
| if (os === "windows") | |
| return { | |
| label: "session.header.open.fileExplorer", | |
| actionLabel: "session.header.reveal.fileExplorer", | |
| icon: "file-explorer", | |
| } | |
| return { | |
| label: "session.header.open.fileManager", | |
| actionLabel: "session.header.reveal.containingFolder", | |
| icon: "finder", | |
| } | |
| } | |