Feature 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.
Feature hasn't been suggested before.
Describe the enhancement you want to request
I would like a feature to open the
tui.jsonandopencode.jsonfiles via slash commands in the OpenCode terminal interface. Currently, finding and editing these files requires navigating the filesystem manually.Typing
/tuishould open thetui.jsonfile in the user's preferred external editor.Typing
/configshould do the same for the globalopencode.jsonfile.Benefits:
Implementation Idea:
The commands should resolve the dynamic paths using
Global.Path.configand use the built-in cross-platformopenutility to launch the default editor. If the files do not exist, they should be initialized with their respective$schemaURLs so that intellisense works out of the box.