Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
11f450a
Add command variables and folder organization to custom commands
Jun 26, 2026
9a574b7
Wire new command-variable source files into the app target
Jun 26, 2026
e8c7938
Narrow variable grammar, add escape, keep ICU-safe docs
Jun 26, 2026
af53f45
Bump CmuxConfigExecutor length budget for escape-stripping change
Jun 26, 2026
c188d16
Shell-quote substituted variable values
Jun 26, 2026
505009d
Address review: value types, schema exclusivity, km cancel, return docs
Jun 26, 2026
56cf338
Only treat unquoted {{name}} as variables (quote-aware scanning)
Jun 26, 2026
563d75d
Honor shell escapes in quote scan; authorize before prompting
Jun 26, 2026
a774605
Make CmuxResolvedConfigAction.folder default explicit
Jun 26, 2026
88c46f2
Require non-blank name on command schema entries
Jun 26, 2026
01084ee
Convert command-variable tests to Swift Testing
Jun 26, 2026
7c95bf1
One major type per new file (Aziz file-organization policy)
Jun 26, 2026
af33147
Strip terminal control characters from substituted variable values
Jun 26, 2026
fc172de
Skip here-doc bodies and comments when scanning for variables
Jun 26, 2026
120c2d3
Return variable matches instead of a Token enum
Jun 26, 2026
ff7e33f
Include folder path in custom command identity
Jun 26, 2026
fa21ef2
De-duplicate loaded commands by identity, not name
Jun 26, 2026
b416023
Fix workspace command resolution and id encoding for folders
Jun 26, 2026
5bc46f0
Resolve workspace command references by id-then-name everywhere
Jun 26, 2026
03f7580
Carry folder-aware id in new-workspace action rebuild
Jun 26, 2026
6849901
Fix stale substituting() docstring
Jun 26, 2026
226779b
Merge remote-tracking branch 'origin/main' into issue-6557-parameteri…
austinywang Jul 3, 2026
50f8220
Address command variable review findings
austinywang Jul 3, 2026
8359c29
Satisfy command template file policy
austinywang Jul 3, 2026
ba6054e
Move command regression tests to Swift Testing
austinywang Jul 3, 2026
3ff93c6
Merge remote-tracking branch 'origin/main' into issue-6557-parameteri…
austinywang Jul 4, 2026
cb787ed
Merge remote-tracking branch 'origin/main' into issue-6557-parameteri…
austinywang Jul 4, 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
4 changes: 2 additions & 2 deletions .github/swift-file-length-budget.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
3896 cmuxTests/WindowAndDragTests.swift
3745 Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttySurfaceView.swift
3699 cmuxTests/CLIGenericHookPersistenceTests.swift
3397 Sources/CmuxConfig.swift
3435 Sources/CmuxConfig.swift
3364 cmuxTests/TabManagerSessionSnapshotTests.swift
3058 Sources/Update/UpdateTitlebarAccessory.swift
2876 cmuxTests/CMUXOpenCommandTests.swift
Expand Down Expand Up @@ -214,7 +214,7 @@
520 CLI/CMUXCLI+AmpExtension.swift
520 cmuxTests/MainWindowVisibilityControllerTests.swift
519 Packages/macOS/CmuxSwiftRender/Tests/CmuxSwiftRenderTests/Corpus/stress-two-column-cockpit-sidebar.swift
519 Sources/CmuxConfigExecutor.swift
577 Sources/CmuxConfigExecutor.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public struct CommandPaletteCommandContribution {
public let subtitle: (CommandPaletteContextSnapshot) -> String
/// Optional keyboard-shortcut hint.
public let shortcutHint: String?
/// Optional trailing "kind" badge (e.g. a custom command's folder
/// breadcrumb). Only shown when there is no `shortcutHint`.
public let kindLabel: String?
/// Additional search keywords.
public let keywords: [String]
/// Whether activating the command dismisses the palette.
Expand All @@ -27,6 +30,7 @@ public struct CommandPaletteCommandContribution {
title: @escaping (CommandPaletteContextSnapshot) -> String,
subtitle: @escaping (CommandPaletteContextSnapshot) -> String,
shortcutHint: String? = nil,
kindLabel: String? = nil,
keywords: [String] = [],
dismissOnRun: Bool = true,
when: @escaping (CommandPaletteContextSnapshot) -> Bool = { _ in true },
Expand All @@ -36,6 +40,7 @@ public struct CommandPaletteCommandContribution {
self.title = title
self.subtitle = subtitle
self.shortcutHint = shortcutHint
self.kindLabel = kindLabel
self.keywords = keywords
self.dismissOnRun = dismissOnRun
self.when = when
Expand Down
Loading
Loading