From 066a0b7c45e50694df0c3c3892961523162a55ad Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:26:04 +0200 Subject: [PATCH] macOS: show description when subtitle missing in CommandPalette --- macos/Sources/Features/Command Palette/CommandPalette.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Features/Command Palette/CommandPalette.swift b/macos/Sources/Features/Command Palette/CommandPalette.swift index de440fdc3..8a09d80eb 100644 --- a/macos/Sources/Features/Command Palette/CommandPalette.swift +++ b/macos/Sources/Features/Command Palette/CommandPalette.swift @@ -79,6 +79,7 @@ struct CommandPaletteView: View { let filtered = options.filter { $0.title.matchedIndices(for: query) != nil || ($0.subtitle?.matchedIndices(for: query) != nil) || + ($0.description?.matchedIndices(for: query) != nil) || colorMatchScore(for: $0.leadingColor, query: query) > 0 } @@ -401,7 +402,7 @@ private struct CommandRow: View { VStack(alignment: .leading, spacing: 2) { highlightedTitle - if let subtitle = option.subtitle { + if let subtitle = option.subtitle ?? option.description { highlightedSubtitle(subtitle) .font(.caption) .foregroundStyle(.secondary)