Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
05af4af
Add browser subframe download regression test
austinywang Jun 24, 2026
05fdea5
Fix browser downloads from subframes
austinywang Jun 24, 2026
8e36fd9
Refresh Swift file length budget
austinywang Jun 24, 2026
2ae496e
Address browser download review findings
austinywang Jun 24, 2026
53a7b18
Harden browser download completion paths
austinywang Jun 25, 2026
a4e37af
Move session download writes off main thread
austinywang Jun 25, 2026
db86301
Preserve scripted blob download filenames
austinywang Jun 25, 2026
52d149e
Bound subframe download interception
austinywang Jun 25, 2026
9262538
Handle redirected subframe downloads
austinywang Jun 25, 2026
2d06aea
Tighten subframe download intent handling
austinywang Jun 25, 2026
30c0d56
Route subframe attachment downloads through session
austinywang Jun 25, 2026
9edfadd
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 25, 2026
b49f3f0
Use tokenized subframe download intent
austinywang Jun 25, 2026
87b327a
Stream subframe fallback downloads with WebKit
austinywang Jun 25, 2026
651fe5e
Handle redirected subframe download waits
austinywang Jun 25, 2026
e64cd2d
Share subframe download intent tracking
austinywang Jun 25, 2026
8a7020b
Transfer redirected subframe download intents
austinywang Jun 25, 2026
b69a81c
Fix subframe intent callback binding
austinywang Jun 25, 2026
4a57d5e
Fix prompted download activity accounting
austinywang Jun 25, 2026
b05d550
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 26, 2026
951bac4
Fix download helper isolation warning
austinywang Jun 26, 2026
9e47a65
Harden browser download saves
austinywang Jun 26, 2026
bdea121
Address download autoreview findings
austinywang Jun 26, 2026
3f9a58d
Fix context download save panel activity
austinywang Jun 26, 2026
4f58615
Use response downloads for subframes
austinywang Jun 26, 2026
3eb0856
Restrict scripted downloads to main frame
austinywang Jun 26, 2026
cd14b8c
Validate scripted download frame origin
austinywang Jun 26, 2026
de1fd4f
Avoid intercepting subframe scripted downloads
austinywang Jun 26, 2026
91835cb
Split browser download helper types
austinywang Jun 26, 2026
eb22a3f
Limit subframe download intents to trusted clicks
austinywang Jun 26, 2026
209962a
Keep scripted download hook out of subframes
austinywang Jun 26, 2026
273ea5b
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 26, 2026
9ba6ccf
Add prompted download completion regression
austinywang Jun 26, 2026
99aed4a
Post prompted download completion events
austinywang Jun 26, 2026
0ec2621
Deduplicate prompted download automation events
austinywang Jun 26, 2026
1bc8400
Address prompted download autoreview findings
austinywang Jun 26, 2026
e587a54
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 26, 2026
23c638d
Post session download automation events
austinywang Jun 26, 2026
0cef08d
Gate subframe download actions through HTTP policy
austinywang Jun 26, 2026
a1362ed
Preserve prompted download completions
austinywang Jun 27, 2026
568e64d
Avoid consuming prompted download ready events
austinywang Jun 27, 2026
7dd6bb6
Handle popup subframe download actions
austinywang Jun 27, 2026
92c98f1
Bound browser download event queues
austinywang Jun 27, 2026
57b2ab2
Fix PDF viewer toolbar downloads
austinywang Jun 27, 2026
26f3973
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 27, 2026
c21c441
Gate PDF print toolbar intents
austinywang Jun 27, 2026
5883354
Use MainActor for download notifications
austinywang Jun 27, 2026
10ee538
Deduplicate browser download prompt events
austinywang Jun 27, 2026
e6aa389
Avoid consuming HTTP bypass for subframe downloads
austinywang Jun 27, 2026
2c3ed06
Require trusted subframe download intents
austinywang Jun 27, 2026
72e03e1
Gate subframe action downloads
austinywang Jun 27, 2026
2101441
Record dynamic subframe download intents
austinywang Jun 27, 2026
ca34d11
Extract browser session download saver
austinywang Jun 27, 2026
feebd87
Scope PDF print intents to rendered subframes
austinywang Jun 27, 2026
949d203
Preserve download quarantine and completion events
austinywang Jun 27, 2026
89d51da
Treat final quarantine as best effort
austinywang Jun 27, 2026
146f4be
Sanitize browser download failure events
austinywang Jun 27, 2026
fec6a27
Fix browser download event test compile
austinywang Jun 27, 2026
0e6b6ba
Add browser PDF toolbar and force-download subframe attachments
austinywang Jun 29, 2026
4e5e4f2
Merge origin/main into issue-6754-browser-downloads
austinywang Jun 29, 2026
b745d98
Merge origin/main into issue-6754-browser-downloads
austinywang Jun 29, 2026
09db647
Scope PDF document toolbar to main-frame PDFs
austinywang Jun 29, 2026
020a0e5
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 29, 2026
7d58cac
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 29, 2026
fe5f5bf
Add Safari/Chrome-style downloads button + popover
austinywang Jun 29, 2026
d95954e
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 29, 2026
36c3b01
Keep download-event folding off the Swift warning budget
austinywang Jun 29, 2026
2a4e131
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 29, 2026
149b097
Make the downloads toolbar button obviously animated
austinywang Jun 30, 2026
eee0c89
Tone down downloads button: monochrome icon + notification bubble
austinywang Jun 30, 2026
c6c6b6d
Merge remote-tracking branch 'origin/main' into issue-6754-browser-do…
austinywang Jun 30, 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
31 changes: 15 additions & 16 deletions .github/swift-file-length-budget.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# Format: max_lines<TAB>relative path
# Reduce counts as files shrink. CI fails if tracked files exceed this budget.
34590 CLI/cmux.swift
17841 Sources/AppDelegate.swift
16132 Sources/ContentView.swift
17827 Sources/AppDelegate.swift
16128 Sources/ContentView.swift
13832 Sources/TerminalController.swift
12894 Sources/Workspace.swift
12845 Sources/Workspace.swift
12237 Sources/GhosttyTerminalView.swift
12144 cmuxTests/AppDelegateShortcutRoutingTests.swift
11929 Sources/Panels/BrowserPanel.swift
12102 Sources/Panels/BrowserPanel.swift
9497 cmuxTests/CLINotifyProcessIntegrationRegressionTests.swift
8017 CLI/cmux_open.swift
8016 CLI/cmux_open.swift
7986 Sources/Panels/BrowserPanelView.swift
7366 cmuxTests/WorkspaceUnitTests.swift
7218 cmuxTests/WorkspaceRemoteConnectionTests.swift
Expand All @@ -23,7 +23,7 @@
5573 cmuxTests/BrowserConfigTests.swift
4487 Sources/Panels/FilePreviewPanel.swift
4478 Sources/cmuxApp.swift
4401 cmuxTests/BrowserPanelTests.swift
4367 cmuxTests/BrowserPanelTests.swift
4187 Sources/BrowserWindowPortal.swift
3934 Sources/Feed/FeedPanelView.swift
3926 cmuxTests/TabManagerUnitTests.swift
Expand All @@ -35,8 +35,8 @@
3058 Sources/Update/UpdateTitlebarAccessory.swift
2876 cmuxTests/CMUXOpenCommandTests.swift
2875 Sources/SessionIndexView.swift
2608 Sources/KeyboardShortcutSettings.swift
2565 Sources/Panels/CmuxWebView.swift
2693 Sources/Panels/CmuxWebView.swift
2606 Sources/KeyboardShortcutSettings.swift
2546 cmuxTests/WorkspaceManualUnreadTests.swift
2524 cmuxTests/CommandPaletteSearchEngineTests.swift
2395 Sources/Mobile/MobileHostService.swift
Expand Down Expand Up @@ -92,16 +92,16 @@
951 Sources/App/TerminalDirectoryOpenSupport.swift
947 Sources/TerminalNotificationPolicy.swift
945 Sources/SessionIndexRegisteredAgents.swift
944 Sources/CommandPalette/CommandPaletteSettingsToggle.swift
937 Sources/TextBoxMentionIndexStore.swift
934 Sources/App/ShortcutRoutingSupport.swift
928 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/AppSection.swift
926 Sources/DockPanelView.swift
920 Sources/CommandPalette/CommandPaletteSettingsToggle.swift
918 cmuxTests/WorkspaceGroupTests.swift
905 Sources/CmuxSSHURLRequest.swift
899 Sources/Panels/MarkdownWebRenderer.swift
885 Sources/Panels/TerminalPanel.swift
881 Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/WorkspaceDetailView.swift
878 Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/WorkspaceDetailView.swift
877 Packages/Shared/CmuxAgentChat/Tests/CmuxAgentChatTests/ChatConversationStoreTests.swift
871 cmuxTests/ClaudeHookSurfaceResolutionSwiftTests.swift
868 Sources/Panels/BrowserScreenshotSnapshotter.swift
Expand All @@ -121,6 +121,7 @@
762 Packages/iOS/CmuxMobileTransport/Sources/CmuxMobileTransport/CmxNetworkByteTransport.swift
760 Packages/macOS/CMUXAgentLaunch/Tests/CMUXAgentLaunchTests/AgentLaunchSanitizerTests.swift
759 Sources/App/MenuBarExtraController.swift
757 Sources/Panels/BrowserPopupWindowController.swift
756 Sources/Panels/AgentSessionWebRendererCoordinator.swift
755 CLI/CMUXCLI+AgentHookDefinitions.swift
754 Sources/TerminalController+ControlWorkspaceContext.swift
Expand All @@ -133,7 +134,6 @@
715 Sources/AppleScriptSupport.swift
710 Sources/TerminalSSHSessionDetector.swift
706 CLI/CMUXCLI+Config.swift
705 Sources/Panels/BrowserPopupWindowController.swift
699 cmuxTests/TerminalNotificationClearAllTests.swift
698 cmuxTests/RestorableAgentHookProviderResumeTests.swift
696 cmuxTests/UpdatePillReleaseVisibilityTests.swift
Expand All @@ -159,13 +159,13 @@
636 Sources/TerminalController+ControlPaneContext.swift
632 cmuxTests/AgentSessionAutoResumeSwiftTests.swift
630 Packages/macOS/CmuxSettings/Sources/CmuxSettings/Values/ShortcutWhenClause.swift
629 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/KeyboardShortcutsSection.swift
627 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/KeyboardShortcutsSection.swift
621 cmuxUITests/RightSidebarChromeHeightUITests.swift
620 cmuxTests/FinderFileDropRegressionTests.swift
620 cmuxTests/TerminalNotificationQueueTests.swift
612 cmuxUITests/FeedSidebarUITests.swift
608 Packages/macOS/CmuxWorkspaces/Sources/CmuxWorkspaces/Coordinators/WorkspaceGroupCoordinator.swift
606 Sources/SettingsNavigation.swift
608 Sources/SettingsNavigation.swift
604 Packages/macOS/CmuxCommandPalette/Tests/CmuxCommandPaletteTests/CommandPaletteNucleoFFITests.swift
601 Packages/macOS/CMUXAgentLaunch/Sources/CMUXAgentLaunch/AgentLaunchSanitizerPrimaryPolicies.swift
599 Packages/macOS/CMUXAgentLaunch/Sources/CMUXAgentLaunch/AgentLaunchSanitizer.swift
Expand All @@ -184,13 +184,13 @@
577 cmuxTests/AppearanceSettingsTests.swift
572 Sources/Feed/FeedTextEditorDebugWindowController.swift
568 Packages/Shared/CMUXMobileCore/Sources/CMUXMobileCore/MobileTerminalRenderGrid.swift
567 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/BrowserSection.swift
567 Packages/macOS/CmuxTerminalCore/Sources/CmuxTerminalCore/ConfigDiscovery/GhosttyConfigDiscovery.swift
562 Packages/iOS/CmuxAgentChatUI/Sources/CmuxAgentChatUI/Transcript/ChatTranscriptTableView.swift
562 cmuxTests/AgentExecutableResolverTests.swift
561 cmuxTests/GhosttyConfigPathResolverTests.swift
560 cmuxTests/CLISSHPTYResizeInputTests.swift
558 Packages/macOS/CmuxGit/Sources/CmuxGit/Parsing/GitMetadataService+Config.swift
552 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/BrowserSection.swift
549 Sources/Panels/BrowserAutomation.swift
547 Packages/iOS/CmuxMobileShell/Sources/CmuxMobileShell/BackingUpPairedMacStore.swift
541 Packages/macOS/CmuxControlSocket/Sources/CmuxControlSocket/Coordinator/Pane/ControlCommandCoordinator+Pane.swift
Expand All @@ -214,19 +214,18 @@
520 cmuxTests/MainWindowVisibilityControllerTests.swift
519 Packages/macOS/CmuxSwiftRender/Tests/CmuxSwiftRenderTests/Corpus/stress-two-column-cockpit-sidebar.swift
519 Sources/CmuxConfigExecutor.swift
518 Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/CMUXMobileRootView.swift
518 Packages/macOS/CmuxSwiftRender/Tests/CmuxSwiftRenderTests/Corpus/stress-git-review-queue-command-deck.swift
516 Sources/TerminalImageTransfer.swift
514 Packages/macOS/CmuxSwiftRender/Sources/CmuxSwiftRender/ExpressionEvaluator.swift
514 cmuxUITests/UpdatePillUITests.swift
509 Packages/macOS/CMUXAgentLaunch/Sources/CMUXAgentLaunch/AgentLaunchSanitizerAdditionalPolicies.swift
507 Sources/TerminalControllerTopSupport.swift
506 Sources/App/MainWindowVisibilityController.swift
505 Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/CMUXMobileRootView.swift
505 cmuxUITests/DisplayResolutionRegressionUITests.swift
504 cmuxTests/TerminalNotificationSocketActionTests.swift
503 Sources/Settings/ConfigSource.swift
502 Sources/CmuxEventPublishing.swift
502 Sources/KeyboardShortcutContext.swift
502 Sources/RemoteTmuxSessionMirror.swift
501 Packages/macOS/CmuxControlSocket/Tests/CmuxControlSocketTests/ControlCommandContextTestStubs.swift
500 Sources/KeyboardShortcutRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ public struct BrowserCatalogSection: SettingCatalogSection {
userDefaultsKey: "browserHiddenWebViewDiscardDelaySeconds"
)

/// Shows a save panel for each browser download instead of saving directly
/// to the user's Downloads folder.
public let askWhereToSaveDownloads = DefaultsKey<Bool>(
id: "browser.askWhereToSaveDownloads",
defaultValue: false,
userDefaultsKey: "browserAskWhereToSaveDownloads"
)

public let openTerminalLinksInCmuxBrowser = DefaultsKey<Bool>(
id: "browser.openTerminalLinksInCmuxBrowser",
defaultValue: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ extension Array where Element == CuratedSettingEntry {
.init(section: .browser, id: "theme", title: "Browser Theme", synonyms: "browser.theme web page theme color scheme light dark system"),
.init(section: .browser, id: "hidden-webview-discard", title: "Browser Memory Saver", synonyms: "browser.discardHiddenWebViews memory hidden tabs webview discard unload reclaim"),
.init(section: .browser, id: "hidden-webview-discard-delay", title: "Memory Saver Delay", synonyms: "browser.hiddenWebViewDiscardDelaySeconds memory hidden tabs delay seconds discard unload"),
.init(
section: .browser,
id: "ask-where-to-save-downloads",
title: String(localized: "settings.browser.askWhereToSaveDownloads", defaultValue: "Ask Where to Save Downloads"),
detailText: String(localized: "settings.browser.askWhereToSaveDownloads.subtitle", defaultValue: "When off, browser downloads save directly to Downloads without a save panel."),
synonyms: String(localized: "settings.search.alias.setting.browser.ask-where-to-save-downloads", defaultValue: "browser.askWhereToSaveDownloads downloads save panel folder attachments files pdf gmail")
),
.init(section: .browser, id: "terminal-links", title: "Open Terminal Links in cmux Browser", synonyms: "browser.openTerminalLinksInCmuxBrowser click url terminal links open in browser href"),
.init(section: .browser, id: "intercept-open", title: "Intercept open http(s) in Terminal", synonyms: "browser.interceptTerminalOpenCommandInCmuxBrowser open command http https url terminal intercept"),
.init(section: .browser, id: "host-whitelist", title: "Hosts to Open in Embedded Browser", synonyms: "browser.hostsToOpenInEmbeddedBrowser allowlist whitelist host wildcard domain embedded browser"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public struct BrowserSection: View {
@State private var theme: DefaultsValueModel<BrowserThemeMode>
@State private var discardEnabled: DefaultsValueModel<Bool>
@State private var discardDelay: DefaultsValueModel<Double>
@State private var askWhereToSaveDownloads: DefaultsValueModel<Bool>
@State private var openTermLinks: DefaultsValueModel<Bool>
@State private var interceptOpen: DefaultsValueModel<Bool>
@State private var hosts: DefaultsValueModel<String>
Expand Down Expand Up @@ -55,6 +56,7 @@ public struct BrowserSection: View {
_theme = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.theme))
_discardEnabled = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.discardHiddenWebViews))
_discardDelay = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.hiddenWebViewDiscardDelaySeconds))
_askWhereToSaveDownloads = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.askWhereToSaveDownloads))
_openTermLinks = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.openTerminalLinksInCmuxBrowser))
_interceptOpen = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.interceptTerminalOpenCommandInCmuxBrowser))
_hosts = State(initialValue: DefaultsValueModel(store: defaultsStore, key: catalog.browser.hostsToOpenInEmbeddedBrowser))
Expand Down Expand Up @@ -83,7 +85,7 @@ public struct BrowserSection: View {
Button(String(localized: "settings.browser.history.clearDialog.cancel", defaultValue: "Cancel"), role: .cancel) {}
} message: {
Text(String(localized: "settings.browser.history.clearDialog.message", defaultValue: "This removes visited-page suggestions from the browser omnibar."))
}.task { startSettingsObservation([disabled, engine, customName, customURL, suggestions, theme, discardEnabled, discardDelay, openTermLinks, interceptOpen, hosts, external, httpAllowlist, importHint, reactGrab]) }
}.task { startSettingsObservation([disabled, engine, customName, customURL, suggestions, theme, discardEnabled, discardDelay, askWhereToSaveDownloads, openTermLinks, interceptOpen, hosts, external, httpAllowlist, importHint, reactGrab]) }
}

@ViewBuilder
Expand Down Expand Up @@ -214,6 +216,19 @@ public struct BrowserSection: View {
}
SettingsCardDivider()

// Download Save Prompt
SettingsCardRow(
configurationReview: .json("browser.askWhereToSaveDownloads"),
String(localized: "settings.browser.askWhereToSaveDownloads", defaultValue: "Ask Where to Save Downloads"),
subtitle: String(localized: "settings.browser.askWhereToSaveDownloads.subtitle", defaultValue: "When off, browser downloads save directly to Downloads without a save panel.")
) {
Toggle("", isOn: Binding(get: { askWhereToSaveDownloads.current }, set: { askWhereToSaveDownloads.set($0) }))
.labelsHidden()
.controlSize(.small)
.accessibilityIdentifier("SettingsBrowserAskWhereToSaveDownloadsToggle")
}
SettingsCardDivider()

// Open Terminal Links
SettingsCardRow(
configurationReview: .json("browser.openTerminalLinksInCmuxBrowser"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ struct SettingsRowAnchorResolutionTests {
"browser.defaultSearchEngine",
"browser.discardHiddenWebViews",
"browser.hiddenWebViewDiscardDelaySeconds",
"browser.askWhereToSaveDownloads",
"browser.hostsToOpenInEmbeddedBrowser",
"browser.interceptTerminalOpenCommandInCmuxBrowser",
"browser.openTerminalLinksInCmuxBrowser",
Expand Down
51 changes: 51 additions & 0 deletions Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -111111,6 +111111,40 @@
}
}
},
"settings.browser.askWhereToSaveDownloads": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Ask Where to Save Downloads"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ダウンロードごとに保存先を確認"
}
}
}
},
"settings.browser.askWhereToSaveDownloads.subtitle": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "When off, browser downloads save directly to Downloads without a save panel."
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "オフの場合、ブラウザのダウンロードは保存パネルなしで直接「ダウンロード」に保存されます。"
}
}
}
},
"settings.browser.hiddenWebViewDiscard": {
"extractionState": "manual",
"localizations": {
Expand Down Expand Up @@ -128096,6 +128130,23 @@
}
}
},
"settings.search.alias.setting.browser.ask-where-to-save-downloads": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "browser.askWhereToSaveDownloads downloads save panel folder attachments files pdf gmail"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "browser.askWhereToSaveDownloads downloads save panel folder attachments files pdf gmail ダウンロード 保存先 保存パネル 添付ファイル PDF"
}
}
}
},
"settings.search.alias.setting.browser.terminal-links": {
"extractionState": "manual",
"localizations": {
Expand Down
5 changes: 5 additions & 0 deletions Sources/CmuxSettingsJSONPathSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ enum BrowserSettingsFileMapping {
static let booleanSettings: [SettingsFileBooleanMapping] = [
.init(jsonKey: "showSearchSuggestions", defaultsKey: BrowserSearchSettingsStore.searchSuggestionsEnabledKey),
.init(jsonKey: "discardHiddenWebViews", defaultsKey: BrowserHiddenWebViewDiscardPolicy.enabledKey),
.init(
jsonKey: "askWhereToSaveDownloads",
defaultsKey: SettingCatalog().browser.askWhereToSaveDownloads.userDefaultsKey
),
.init(
jsonKey: "openTerminalLinksInCmuxBrowser",
defaultsKey: BrowserLinkOpenSettings.openTerminalLinksInCmuxBrowserKey
Expand Down Expand Up @@ -418,6 +422,7 @@ extension CmuxSettingsFileStore {
"browser.theme",
"browser.discardHiddenWebViews",
"browser.hiddenWebViewDiscardDelaySeconds",
"browser.askWhereToSaveDownloads",
"browser.openTerminalLinksInCmuxBrowser",
"browser.interceptTerminalOpenCommandInCmuxBrowser",
"browser.hostsToOpenInEmbeddedBrowser",
Expand Down
24 changes: 24 additions & 0 deletions Sources/CommandPalette/CommandPaletteSettingsToggle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,30 @@ enum CommandPaletteSettingsToggleCommands {
defaultValue: BrowserSearchSettingsStore.defaultSearchSuggestionsEnabled,
defaultsKey: BrowserSearchSettingsStore.searchSuggestionsEnabledKey
),
CommandPaletteSettingToggleDescriptor(
commandId: commandIdPrefix + "askWhereToSaveBrowserDownloads",
settingsKey: "browser.askWhereToSaveDownloads",
title: {
String(
localized: "settings.browser.askWhereToSaveDownloads",
defaultValue: "Ask Where to Save Downloads"
)
},
sectionTitle: browser,
keywords: [
"browser.askWhereToSaveDownloads",
"browser",
"downloads",
"save",
"panel",
"folder",
"attachments",
"files",
"pdf",
],
defaultValue: SettingCatalog().browser.askWhereToSaveDownloads.defaultValue,
defaultsKey: SettingCatalog().browser.askWhereToSaveDownloads.userDefaultsKey
),
CommandPaletteSettingToggleDescriptor(
commandId: commandIdPrefix + "openTerminalLinksInCmuxBrowser",
settingsKey: "browser.openTerminalLinksInCmuxBrowser",
Expand Down
1 change: 1 addition & 0 deletions Sources/KeyboardShortcutSettingsFileStore+Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ extension CmuxSettingsFileStore {
"theme": BrowserThemeSettings.defaultMode.rawValue,
"discardHiddenWebViews": BrowserHiddenWebViewDiscardPolicy.defaultEnabled,
"hiddenWebViewDiscardDelaySeconds": BrowserHiddenWebViewDiscardPolicy.defaultHiddenDelay,
"askWhereToSaveDownloads": SettingCatalog().browser.askWhereToSaveDownloads.defaultValue,
"openTerminalLinksInCmuxBrowser": BrowserLinkOpenSettings.defaultOpenTerminalLinksInCmuxBrowser,
"interceptTerminalOpenCommandInCmuxBrowser": BrowserLinkOpenSettings.defaultInterceptTerminalOpenCommandInCmuxBrowser,
"hostsToOpenInEmbeddedBrowser": [String](),
Expand Down
Loading
Loading