The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import { isWindowsAbsolutePath } from "@t3tools/shared/path"; |
| 2 | |
| 3 | // The file host can use a different path style from the client. |
| 4 | export function formatFilePathForClipboard(path: string, hostPath = path): string { |
| 5 | return isWindowsAbsolutePath(hostPath) ? path.replaceAll("/", "\\") : path; |
| 6 | } |
| 7 | |
| 8 | export type MediaActionId = |
| 9 | | "copy-full-path" |
| 10 | | "copy-relative-path" |
| 11 | | "copy-url" |
| 12 | | "open-file" |
| 13 | | "save" |
| 14 | | "save-image" |
| 15 | | "copy-image"; |