Skip to content
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4b3e261
feat: download remote file explorer items
austinywang May 12, 2026
4730067
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 12, 2026
b8787df
fix: make remote download process wait async
austinywang May 12, 2026
dd198df
fix: own remote download task lifecycle
austinywang May 12, 2026
7118719
fix: race scp termination grace period
austinywang May 12, 2026
48af0bf
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 12, 2026
100db6c
fix: clear file explorer download warnings
austinywang May 12, 2026
4194be8
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 12, 2026
efe723e
fix: address remote download review feedback
austinywang May 12, 2026
a8f376d
fix: clear remote download main actor warnings
austinywang May 12, 2026
05d66fa
fix: isolate remote download transport
austinywang May 12, 2026
0cfd465
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 13, 2026
83484b9
fix: harden remote download cancellation cleanup
austinywang May 13, 2026
fd77c59
test: cover quoted remote download paths
austinywang May 14, 2026
ee21aba
fix: quote remote download scp paths
austinywang May 14, 2026
7d0ff87
merge: resolve main conflicts
austinywang May 14, 2026
ebce175
fix: share file explorer path helpers
austinywang May 15, 2026
ed82f9c
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 18, 2026
3add51a
test: cover remote download launch failures
austinywang May 18, 2026
dfe7538
fix: sanitize remote download launch failures
austinywang May 18, 2026
a3e03f4
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 18, 2026
aad5c59
fix: preserve ssh option values with equals
austinywang May 18, 2026
75ea62a
fix: remember remote download destination
austinywang May 18, 2026
d2113d5
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 18, 2026
edb1a28
Merge origin/main into issue-3637-download-remote-files-file-explorer
austinywang May 19, 2026
78f5887
Merge remote-tracking branch 'origin/main' into issue-3637-download-r…
austinywang May 19, 2026
1a54aba
fix: localize remote download strings
austinywang May 19, 2026
66b7d50
fix: localize remote ssh error strings
austinywang May 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions GhosttyTabs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@
5C3E0454B6C24B02A2F091A8 /* ShortcutRoutingSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = B42A82C6AA614E74873D9A5F /* ShortcutRoutingSupport.swift */; };
76027A12C93B4538BF22C71E /* ShortcutBareStartRouting.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB7F2E9143904957AAA70726 /* ShortcutBareStartRouting.swift */; };
E5C0F1A0E5C0F1A0E5C0F1A0 /* TerminalFindEscapeRouting.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5C0F1A1E5C0F1A1E5C0F1A1 /* TerminalFindEscapeRouting.swift */; };
D36370010000000000000001 /* ShellArgumentQuoting.swift in Sources */ = {isa = PBXBuildFile; fileRef = D36370010000000000000002 /* ShellArgumentQuoting.swift */; };
D36370010000000000000003 /* LocalDirectoryPathNormalization.swift in Sources */ = {isa = PBXBuildFile; fileRef = D36370010000000000000004 /* LocalDirectoryPathNormalization.swift */; };
1A8BEE693C9E4C3190CB7F20 /* MenuBarExtraController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7934BB35B66491B1BCA8064 /* MenuBarExtraController.swift */; };
2F0C07000000000000000002 /* CmuxMainWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F0C07000000000000000001 /* CmuxMainWindow.swift */; };
2F0C06000000000000000002 /* MainWindowVisibilityController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F0C06000000000000000001 /* MainWindowVisibilityController.swift */; };
Expand Down Expand Up @@ -433,6 +435,7 @@
FA100000A1B2C3D4E5F60718 /* BrowserImportMappingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA100001A1B2C3D4E5F60718 /* BrowserImportMappingTests.swift */; };
FB100000A1B2C3D4E5F60718 /* BrowserImportProfilesUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB100001A1B2C3D4E5F60718 /* BrowserImportProfilesUITests.swift */; };
FE001101 /* FileExplorerStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE001001 /* FileExplorerStore.swift */; };
FE001105 /* ProcessSSHFileExplorerTransport.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE001005 /* ProcessSSHFileExplorerTransport.swift */; };
B37A00000000000000000009 /* FileExplorerState.swift in Sources */ = {isa = PBXBuildFile; fileRef = B37A0000000000000000000A /* FileExplorerState.swift */; };
FE001102 /* FileExplorerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE001002 /* FileExplorerView.swift */; };
FE001103 /* FileExplorerSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE001003 /* FileExplorerSearchController.swift */; };
Expand Down Expand Up @@ -659,6 +662,8 @@
B42A82C6AA614E74873D9A5F /* ShortcutRoutingSupport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/ShortcutRoutingSupport.swift; sourceTree = "<group>"; };
AB7F2E9143904957AAA70726 /* ShortcutBareStartRouting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/ShortcutBareStartRouting.swift; sourceTree = "<group>"; };
E5C0F1A1E5C0F1A1E5C0F1A1 /* TerminalFindEscapeRouting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/TerminalFindEscapeRouting.swift; sourceTree = "<group>"; };
D36370010000000000000002 /* ShellArgumentQuoting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShellArgumentQuoting.swift; sourceTree = "<group>"; };
D36370010000000000000004 /* LocalDirectoryPathNormalization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalDirectoryPathNormalization.swift; sourceTree = "<group>"; };
C7934BB35B66491B1BCA8064 /* MenuBarExtraController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/MenuBarExtraController.swift; sourceTree = "<group>"; };
2F0C07000000000000000001 /* CmuxMainWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/CmuxMainWindow.swift; sourceTree = "<group>"; };
2F0C06000000000000000001 /* MainWindowVisibilityController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App/MainWindowVisibilityController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -949,6 +954,7 @@
FA100001A1B2C3D4E5F60718 /* BrowserImportMappingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserImportMappingTests.swift; sourceTree = "<group>"; };
FB100001A1B2C3D4E5F60718 /* BrowserImportProfilesUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserImportProfilesUITests.swift; sourceTree = "<group>"; };
FE001001 /* FileExplorerStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileExplorerStore.swift; sourceTree = "<group>"; };
FE001005 /* ProcessSSHFileExplorerTransport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProcessSSHFileExplorerTransport.swift; sourceTree = "<group>"; };
B37A0000000000000000000A /* FileExplorerState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileExplorerState.swift; sourceTree = "<group>"; };
FE001002 /* FileExplorerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileExplorerView.swift; sourceTree = "<group>"; };
FE001003 /* FileExplorerSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileExplorerSearchController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1198,6 +1204,8 @@
A5F10010A1B2C3D4E5F60719 /* KeyboardShortcutSettingsFileStore.swift */,
A5F10012A1B2C3D4E5F60719 /* KeyboardShortcutSettingsFileStore+Template.swift */,
C0DEF0B10000000000000002 /* JSONCParser.swift */,
D36370010000000000000002 /* ShellArgumentQuoting.swift */,
D36370010000000000000004 /* LocalDirectoryPathNormalization.swift */,
A50012F4 /* KeyboardLayout.swift */,
A5001013 /* TabManager.swift */,
C3677003000000000000002 /* TabManager+CompatibilityTypes.swift */,
Expand Down Expand Up @@ -1352,6 +1360,7 @@
A5001653 /* CmuxConfigExecutor.swift */,
A5001655 /* CmuxActionTrust.swift */,
FE001001 /* FileExplorerStore.swift */,
FE001005 /* ProcessSSHFileExplorerTransport.swift */,
B37A0000000000000000000A /* FileExplorerState.swift */,
FE001003 /* FileExplorerSearchController.swift */,
FE001004 /* FileExplorerTerminalPathInsertion.swift */,
Expand Down Expand Up @@ -1876,6 +1885,8 @@
A5F10011A1B2C3D4E5F60719 /* KeyboardShortcutSettingsFileStore.swift in Sources */,
A5F10013A1B2C3D4E5F60719 /* KeyboardShortcutSettingsFileStore+Template.swift in Sources */,
C0DEF0B10000000000000001 /* JSONCParser.swift in Sources */,
D36370010000000000000001 /* ShellArgumentQuoting.swift in Sources */,
D36370010000000000000003 /* LocalDirectoryPathNormalization.swift in Sources */,
A50012F5 /* KeyboardLayout.swift in Sources */,
A5001003 /* TabManager.swift in Sources */,
C3677003000000000000001 /* TabManager+CompatibilityTypes.swift in Sources */,
Expand Down Expand Up @@ -2034,6 +2045,7 @@
A5001652 /* CmuxConfigExecutor.swift in Sources */,
A5001654 /* CmuxActionTrust.swift in Sources */,
FE001101 /* FileExplorerStore.swift in Sources */,
FE001105 /* ProcessSSHFileExplorerTransport.swift in Sources */,
B37A00000000000000000009 /* FileExplorerState.swift in Sources */,
FE001103 /* FileExplorerSearchController.swift in Sources */,
FE001104 /* FileExplorerTerminalPathInsertion.swift in Sources */,
Expand Down
238 changes: 238 additions & 0 deletions Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -86536,6 +86536,23 @@
}
}
},
"fileExplorer.contextMenu.downloadToLocal": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download to Local…"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ローカルにダウンロード…"
}
}
}
},
"fileExplorer.contextMenu.insertPath": {
"extractionState": "manual",
"localizations": {
Expand Down Expand Up @@ -86621,6 +86638,227 @@
}
}
},
"fileExplorer.download.alertOK": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "OK"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "OK"
}
}
}
},
"fileExplorer.download.complete.body": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Saved to %@"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "%@ に保存しました"
}
}
}
},
"fileExplorer.download.complete.title": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download Complete"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロード完了"
}
}
}
},
"fileExplorer.download.failed.title": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download Failed"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロードに失敗しました"
}
}
}
},
"fileExplorer.download.panelMessage": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Choose where to download \"%@\"."
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "\"%@\" のダウンロード先を選択してください。"
}
}
}
},
"fileExplorer.download.panelPrompt": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロード"
}
}
}
},
"fileExplorer.download.panelTitle": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download Remote Item"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "リモート項目をダウンロード"
}
}
}
},
"fileExplorer.error.downloadDestinationInvalid": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download destination is not a local folder: %@"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロード先はローカルフォルダではありません: %@"
}
}
}
},
"fileExplorer.error.downloadTargetExists": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "A local item already exists at %@"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "%@ には既にローカル項目があります"
}
}
}
},
"fileExplorer.error.downloadFailed": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download failed: %@"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロードに失敗しました: %@"
}
}
}
},
"fileExplorer.error.downloadTimedOut": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Download timed out."
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロードがタイムアウトしました。"
}
}
}
},
"fileExplorer.error.remoteCommandExited": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Remote command exited with status %d."
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "リモートコマンドはステータス %d で終了しました。"
}
}
}
},
"fileExplorer.error.sshFailed": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "SSH command failed: %@"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "SSH コマンドに失敗しました: %@"
}
}
}
},
"fileExplorer.error.unavailable": {
"extractionState": "manual",
"localizations": {
Expand Down
4 changes: 4 additions & 0 deletions Sources/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2473,6 +2473,7 @@ struct ContentView: View {
// No selection means we have no local cwd to scope by; clear so the
// sessions panel doesn't keep filtering by a stale previous tab.
sessionIndexStore.setCurrentDirectoryIfChanged(nil)
fileExplorerStore.setDefaultLocalDownloadDirectory(nil)
fileExplorerStore.applyWorkspaceRoot(.none)
return
}
Expand All @@ -2481,6 +2482,7 @@ struct ContentView: View {

if tab.isRemoteWorkspace {
sessionIndexStore.setCurrentDirectoryIfChanged(nil)
fileExplorerStore.setDefaultLocalDownloadDirectory(tab.defaultLocalDownloadDirectory)
guard let config = tab.remoteConfiguration, config.transport == .ssh else {
fileExplorerStore.applyWorkspaceRoot(.none)
return
Expand Down Expand Up @@ -2518,11 +2520,13 @@ struct ContentView: View {
let dir = tab.currentDirectory.trimmingCharacters(in: .whitespacesAndNewlines)
guard !dir.isEmpty else {
sessionIndexStore.setCurrentDirectoryIfChanged(nil)
fileExplorerStore.setDefaultLocalDownloadDirectory(nil)
fileExplorerStore.applyWorkspaceRoot(.none)
return
}

sessionIndexStore.setCurrentDirectoryIfChanged(dir)
fileExplorerStore.setDefaultLocalDownloadDirectory(dir)
fileExplorerStore.applyWorkspaceRoot(.local(path: dir))
}

Expand Down
Loading
Loading