From cf3a0981cec35da4dae885bbb6e9bcec98cc35ca Mon Sep 17 00:00:00 2001 From: onevcat Date: Sun, 19 Jul 2026 14:39:19 +0900 Subject: [PATCH] fix: shorten the global commands settings tab to Commands Every other sidebar tab is a single word; the detail pane title and doc references to the tab follow suit. The in-form section header keeps the full "Custom Commands" feature name. Claude-Session: https://claude.ai/code/session_01CLXvQhjmJ7avnPfx6FFG2E --- .../002-custom-commands/005-global-custom-commands-action.md | 2 +- docs/components/custom-actions.md | 4 ++-- docs/components/settings.md | 2 +- .../Repositories/Views/WorktreeDetailToolbarViews.swift | 2 +- supacode/Features/Settings/Views/SettingsView.swift | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs-ai/002-custom-commands/005-global-custom-commands-action.md b/docs-ai/002-custom-commands/005-global-custom-commands-action.md index 983c3c79..033f56d4 100644 --- a/docs-ai/002-custom-commands/005-global-custom-commands-action.md +++ b/docs-ai/002-custom-commands/005-global-custom-commands-action.md @@ -17,7 +17,7 @@ source-qualified command identity. Local bindings retain `custom_command.` and global bindings use `custom_command.global.`; a local shortcut collision disables the global binding. -- Settings → Custom Commands edits the global list. Toolbar, overflow, and menu entries +- Settings → Commands edits the global list. Toolbar, overflow, and menu entries render identically for both sources; the global origin is only surfaced in hover tooltips ("Defined as a global command") after onevcat rejected a visible globe marker. - Both settings surfaces embed `CustomCommandsEditor` diff --git a/docs/components/custom-actions.md b/docs/components/custom-actions.md index d4a2a269..6f5a5823 100644 --- a/docs/components/custom-actions.md +++ b/docs/components/custom-actions.md @@ -16,7 +16,7 @@ Prowl has four distinct mechanisms for "run my command": | **Run Script** | one per repo | on demand (`⌘R`) | Repo Settings → Run Script | | **Setup Script** | one per repo | automatically after a worktree is created | Repo Settings → Setup Script | | **Archive Script** | one per repo | automatically before a worktree is archived | Repo Settings → Archive Script | -| **Custom Commands** | many, global or per repo | on demand (button / hotkey / palette) | Settings → Custom Commands or Repo Settings → Custom Commands | +| **Custom Commands** | many, global or per repo | on demand (button / hotkey / palette) | Settings → Commands or Repo Settings → Custom Commands | All scripts run with these **environment variables** injected: - `PROWL_WORKTREE_PATH` — the active worktree's directory. @@ -86,7 +86,7 @@ Global commands are stored in `~/.prowl/global.onevcat.json`; local commands rem - Per repo (Repo Settings): `runScript`, `setupScript`, `archiveScript`, and local Custom Commands. -- Global (Settings → Custom Commands): global Custom Commands shared by every repo. +- Global (Settings → Commands): global Custom Commands shared by every repo. - Global: `showRunButtonInToolbar`, `showDefaultEditorInToolbar`. ## Gotchas for agents diff --git a/docs/components/settings.md b/docs/components/settings.md index 53f35e17..0217d653 100644 --- a/docs/components/settings.md +++ b/docs/components/settings.md @@ -23,7 +23,7 @@ window is a sidebar of tabs plus a detail pane. | **Updates** | Auto-check toggle, "Check for Updates Now". → [updates](updates.md) | | **Advanced** | Analytics, crash reports, restore terminal layout on launch (experimental) + clear saved layout, and the **Install Command Line Tool** (`prowl` CLI) action. | | **GitHub** | Enable GitHub integration (uses the `gh` CLI). → [github-pull-requests](github-pull-requests.md) | -| **Custom Commands** | Global Custom Commands available in every repository. Local commands with the same title take precedence. → [custom-actions](custom-actions.md) | +| **Commands** | Global Custom Commands available in every repository. Local commands with the same title take precedence. → [custom-actions](custom-actions.md) | | **Repositories / Repo Settings** | Per-repository: setup/archive/run scripts, **Custom Commands**, default base ref & directory, copy-files overrides, open-with app, custom title, icon & color, PR merge strategy, line-diff & PR-state fetching. Reached from the sidebar context menu → "Repo Settings". → [custom-actions](custom-actions.md), [repositories-and-worktrees](repositories-and-worktrees.md) | ## Where settings live on disk diff --git a/supacode/Features/Repositories/Views/WorktreeDetailToolbarViews.swift b/supacode/Features/Repositories/Views/WorktreeDetailToolbarViews.swift index 16de221e..814bb8c8 100644 --- a/supacode/Features/Repositories/Views/WorktreeDetailToolbarViews.swift +++ b/supacode/Features/Repositories/Views/WorktreeDetailToolbarViews.swift @@ -154,7 +154,7 @@ struct UserCustomCommandToolbarButton: View { case .repository: return "\(title) (Set command script in Repository Settings)" case .global: - return "\(title) (Set command script in Settings → Custom Commands)" + return "\(title) (Set command script in Settings → Commands)" } } var text = title diff --git a/supacode/Features/Settings/Views/SettingsView.swift b/supacode/Features/Settings/Views/SettingsView.swift index 2c7a69b7..868b6828 100644 --- a/supacode/Features/Settings/Views/SettingsView.swift +++ b/supacode/Features/Settings/Views/SettingsView.swift @@ -44,7 +44,7 @@ struct SettingsView: View { .tag(SettingsSection.advanced) Label("GitHub", systemImage: "arrow.triangle.branch") .tag(SettingsSection.github) - Label("Custom Commands", systemImage: "globe") + Label("Commands", systemImage: "globe") .tag(SettingsSection.customCommands) Section("Repositories") { @@ -113,7 +113,7 @@ struct SettingsView: View { action: \.globalCustomCommands ) { GlobalCustomCommandsView(store: globalCustomCommandsStore) - .navigationTitle("Custom Commands") + .navigationTitle("Commands") .navigationSubtitle("Global terminal actions") } else { ProgressView() -- 2.51.2