[PR #719] [CLOSED] Feat: add /config command for editing configurations #9692

Closed
opened 2026-02-16 18:14:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/719
Author: @jhrudden
Created: 7/5/2025
Status: Closed

Base: devHead: feat/add-edit-config-cmd


📝 Commits (9)

  • 77e79b1 feat: add cmd for editing config.json via $EDITOR
  • a6abff2 fix: update to toast instead of app exit post changes
  • a4ae42a feat: prioritize project config over global (fallback to global)
  • 28f59c4 chore: update docs
  • 686f7b7 fix: copy
  • 710b448 feat: add /auth command for editing global auth config file
  • abefd44 chore: rename config command to edit_config
  • 94023f7 clean up
  • c9d668f chore: remove /auth command but keep keybinds

📊 Changes

8 files changed (+88 additions, -13 deletions)

View changed files

📝 packages/opencode/src/app/app.ts (+2 -0)
📝 packages/opencode/src/config/config.ts (+2 -0)
📝 packages/tui/internal/commands/command.go (+13 -0)
📝 packages/tui/internal/tui/tui.go (+45 -0)
📝 packages/tui/sdk/app.go (+8 -6)
📝 packages/tui/sdk/config.go (+6 -0)
📝 packages/web/src/content/docs/docs/config.mdx (+10 -7)
📝 packages/web/src/content/docs/docs/keybinds.mdx (+2 -0)

📄 Description

Related issue: #764. Quick way to edit your opencode config.

What it does:

  • Run /config to open your config file
    • Tries project config first (opencode.json), falls back to global (~/.config/opencode/config.json)
  • Additionally adds "a" command to open your auth configuration file

Also added docs updates for new command.

Note: You'll need to restart opencode after making config changes.

New docs

Screenshot 2025-07-05 at 5 22 13 PM


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/719 **Author:** [@jhrudden](https://github.com/jhrudden) **Created:** 7/5/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/add-edit-config-cmd` --- ### 📝 Commits (9) - [`77e79b1`](https://github.com/anomalyco/opencode/commit/77e79b1ab14c6dd86cdfe5d407e6222964b0d149) feat: add cmd for editing config.json via $EDITOR - [`a6abff2`](https://github.com/anomalyco/opencode/commit/a6abff2752c53f0c0ecc691609c8af5459daf1af) fix: update to toast instead of app exit post changes - [`a4ae42a`](https://github.com/anomalyco/opencode/commit/a4ae42a6e40300c4badea3d1cc5f2f84fdc3e1b4) feat: prioritize project config over global (fallback to global) - [`28f59c4`](https://github.com/anomalyco/opencode/commit/28f59c402d55e8b89d012937461288efd6004bc2) chore: update docs - [`686f7b7`](https://github.com/anomalyco/opencode/commit/686f7b7e20b22065943c47f6245a0021c98bf2ca) fix: copy - [`710b448`](https://github.com/anomalyco/opencode/commit/710b4487c15fcec491f6875b90914d2eafeae231) feat: add /auth command for editing global auth config file - [`abefd44`](https://github.com/anomalyco/opencode/commit/abefd441a0e67843ae40060861b035336dbc3518) chore: rename config command to edit_config - [`94023f7`](https://github.com/anomalyco/opencode/commit/94023f7bb9ee043b92013e9bd48140021ebe0606) clean up - [`c9d668f`](https://github.com/anomalyco/opencode/commit/c9d668f9b111e34fa61bdd3b0c60a0f937caa66a) chore: remove /auth command but keep keybinds ### 📊 Changes **8 files changed** (+88 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/app/app.ts` (+2 -0) 📝 `packages/opencode/src/config/config.ts` (+2 -0) 📝 `packages/tui/internal/commands/command.go` (+13 -0) 📝 `packages/tui/internal/tui/tui.go` (+45 -0) 📝 `packages/tui/sdk/app.go` (+8 -6) 📝 `packages/tui/sdk/config.go` (+6 -0) 📝 `packages/web/src/content/docs/docs/config.mdx` (+10 -7) 📝 `packages/web/src/content/docs/docs/keybinds.mdx` (+2 -0) </details> ### 📄 Description Related issue: #764. Quick way to edit your opencode config. **What it does:** - Run `/config` to open your config file - Tries project config first (`opencode.json`), falls back to global (`~/.config/opencode/config.json`) - Additionally adds "<leader>a" command to open your auth configuration file Also added docs updates for new command. *Note: You'll need to restart opencode after making config changes.* ### New docs ![Screenshot 2025-07-05 at 5 22 13 PM](https://github.com/user-attachments/assets/3f5687f4-90d5-4e42-bc5c-f497d16b995a) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:00 -05:00
yindo closed this issue 2026-02-16 18:14:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9692