Skip to content

Add app exclusions management to Settings - #9

Open
OleksandrAWS wants to merge 1 commit into
rundax:masterfrom
OleksandrAWS:feature/app-exclusions-settings
Open

Add app exclusions management to Settings#9
OleksandrAWS wants to merge 1 commit into
rundax:masterfrom
OleksandrAWS:feature/app-exclusions-settings

Conversation

@OleksandrAWS

Copy link
Copy Markdown

Summary

  • Add an "Excluded Apps" list to the Settings window, backed by the existing AppFilter blacklist (previously only manageable one-at-a-time via the "Enable/Disable in Current App" menu-bar item).
  • Add apps to the exclusion list via a + menu with two sources:
    • Choose from Running Apps… — a sheet listing currently running apps (NSWorkspace.shared.runningApplications, regular apps only, excludes already-excluded apps and SwitchFix itself).
    • Choose from Applications Folder… — an NSOpenPanel defaulting to /Applications, but browsable to any folder.
  • Remove apps via a - button with multi-select support.
  • Resize the Settings window to fit the new section.

Why

Users had no way to see or manage the full exclusion list, and could only toggle the currently frontmost app from the menu bar.

Test plan

  • swift build succeeds
  • Launched the app locally, confirmed no crash on startup or after interacting with the menu-bar item
  • Manual verification of the new Settings UI (running-apps picker, Applications-folder picker, add/remove) — recommend reviewer/maintainer confirms visually since this was built without direct GUI access in the dev sandbox

Settings previously had no way to view or manage the correction
blacklist beyond the "Enable/Disable in Current App" menu-bar item,
which only affected the frontmost app.

- Add an "Excluded Apps" list to SettingsView backed by AppFilter,
  with icons/names resolved via NSWorkspace and remove via a minus
  button (multi-select supported).
- Add app via a menu: pick from currently running apps (a sheet
  listing NSWorkspace.shared.runningApplications, excluding apps
  already excluded and SwitchFix itself), or browse the filesystem
  via NSOpenPanel (defaults to /Applications, but any folder works).
- Resize the Settings window to fit the new section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants