Skip to content

feat: add configurable “Open in” targets (settings UI, custom commands/args, ordering)#230

Merged
Dimillian merged 7 commits intomainfrom
codex/add-customization-for-open-in-feature
Jan 26, 2026
Merged

feat: add configurable “Open in” targets (settings UI, custom commands/args, ordering)#230
Dimillian merged 7 commits intomainfrom
codex/add-customization-for-open-in-feature

Conversation

@Dimillian
Copy link
Copy Markdown
Owner

Motivation

  • Provide a user-configurable version of the existing "Open in" menu so users can add arbitrary apps or commands with custom launch arguments and reorder the list, and make the file-preview and message link actions use that configuration.

Description

  • Add a new OpenAppTarget type and persistent settings fields openAppTargets and selectedOpenAppId (frontend src/types.ts, backend src-tauri/src/types.rs) and expose default targets in src/features/app/constants.ts.
  • Add a new Settings → "Open in" section (src/features/settings/components/SettingsView.tsx) to add/edit/remove targets, set app / command / args, choose a default, and reorder entries, plus supporting styles in src/styles/settings.css.
  • Wire the configurable targets into UI and link handlers: OpenAppMenu, FilePreviewPopover, Messages and useFileLinkOpener now respect configured targets and selected default, and selection is synced to localStorage and saved in app settings.
  • Extend the IPC/service and backend openWorkspaceIn/open_workspace_in to accept optional command and args so targets can launch via macOS open -a or arbitrary commands with args (src/services/tauri.ts, src-tauri/src/workspaces.rs).

Testing

  • Ran lint with npm run lint and addressed warnings; lint completed successfully.
  • Ran the test suite with npm run test (vitest) and all tests passed (39 files, 180 tests).
  • Ran type checking with npm run typecheck (tsc --noEmit) and it completed with no errors.

Codex Task

@Dimillian
Copy link
Copy Markdown
Owner Author

@codex review

@Dimillian Dimillian changed the title Add configurable “Open in” targets (settings UI, custom commands/args, ordering) feat: add configurable “Open in” targets (settings UI, custom commands/args, ordering) Jan 25, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be4ec7a39f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/App.tsx Outdated
@Dimillian Dimillian merged commit 1edd237 into main Jan 26, 2026
5 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
zip700 pushed a commit to zip700/CodexMonitor that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant