Skip to content

[FEATURE]: Add /tui and /config slash commands #16911

Description

@Oerum

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

I would like a feature to open the tui.json and opencode.json files via slash commands in the OpenCode terminal interface. Currently, finding and editing these files requires navigating the filesystem manually.

Typing /tui should open the tui.json file in the user's preferred external editor.
Typing /config should do the same for the global opencode.json file.

Benefits:

  • Faster access to configuration files
  • Better developer experience (DX) and discoverability
  • Avoids the need to memorize platform-specific config locations

Implementation Idea:
The commands should resolve the dynamic paths using Global.Path.config and use the built-in cross-platform open utility to launch the default editor. If the files do not exist, they should be initialized with their respective $schema URLs so that intellisense works out of the box.

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