mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-27 09:31:39 +00:00
macOS: show description when subtitle missing in CommandPalette
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user