native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #29 from onevcat/feature/filter-ghostty-command-palette-duplicates

Filter duplicate Ghostty commands from command palette

authored by

Wei Wang and committed by
GitHub
2bdaa1db f0eb28bb

+8 -1
+8 -1
supacode/Features/CommandPalette/Reducer/CommandPaletteFeature.swift
··· 589 589 } 590 590 } 591 591 592 + /// Ghostty actions that Prowl handles natively and should not appear as 593 + /// duplicates from the Ghostty command palette entries. 594 + private let filteredGhosttyActions: Set<String> = [ 595 + "check_for_updates", 596 + ] 597 + 592 598 private func ghosttyCommandItems(_ commands: [GhosttyCommand]) -> [CommandPaletteItem] { 593 - commands.map { command in 599 + commands.compactMap { command in 600 + guard !filteredGhosttyActions.contains(command.action) else { return nil } 594 601 let subtitle = command.description.trimmingCharacters(in: .whitespacesAndNewlines) 595 602 return CommandPaletteItem( 596 603 id: CommandPaletteItemID.ghosttyCommand(command),