Skip to content

[FEATURE]: Make the desktop app "Open in" menu configurable with custom editors #15500

Closed as not planned

Description

@mlwelles

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The desktop app's "Open in" dropdown (upper-right corner) only shows editors from a hardcoded list in packages/app/src/components/session/session-header.tsx (OPEN_APPS, MAC_APPS, etc.). If your editor isn't on that list, you cannot add it.

Problem: Editors like Emacs (emacsclient), IntelliJ IDEA, Neovim, Helix, and many others are missing from the hardcoded list. Users have no way to add them.

Proposed solution: Allow users to define custom entries in opencode.json (or tui.json), for example:

{
  "open": {
    "apps": [
      {
        "label": "Emacs",
        "command": "/usr/local/bin/emacsclient"
      },
      {
        "label": "Idea",
        "command": "/Users/me/Library/Application Support/JetBrains/Toolbox/scripts/idea"
      }
    ]
  }
}

These custom entries would appear alongside the auto-detected apps in the "Open in" dropdown. Each entry needs only a display label and a command path. An optional icon field would be a nice addition.

Current behavior: The dropdown is populated by checking which apps from a hardcoded list (MAC_APPS, WINDOWS_APPS, LINUX_APPS) exist on the system via platform.checkAppExists. No configuration mechanism exists.

Relevant code: packages/app/src/components/session/session-header.tsx, lines ~28-100.

Activity

  1. github-actions commented on Feb 28, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or related to an existing issue. Please check:

    If you believe these are distinct enough to remain separate, please let a maintainer know.

  2. Moelanz commented on Mar 19, 2026

    @Moelanz

    We need this! I want PhpStorm to be added to the list of apps.

  3. chrillep commented on Mar 26, 2026

    @chrillep

    +1 or just use preferred exported EDITOR in shell?

    export EDITOR="phpstorm"

    usually you have one goto editor ....
    "just" look that one up instead ❤️

  4. fengmazi commented on Apr 21, 2026

    @fengmazi

    pardon,when can it be used? i really need this function.

  5. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  6. github-actions commented on Jul 18, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions