feat: fuzzy file open

This commit is contained in:
Adam
2025-09-24 12:40:54 -05:00
parent 89cb0f9a01
commit 595e3d48f7
4 changed files with 75 additions and 36 deletions
+5
View File
@@ -3,6 +3,11 @@ export function getFilename(path: string) {
return parts[parts.length - 1]
}
export function getDirectory(path: string) {
const parts = path.split("/")
return parts.slice(0, parts.length - 1).join("/")
}
export function getFileExtension(path: string) {
const parts = path.split(".")
return parts[parts.length - 1]