diff options
| author | adamdotdevin <[email protected]> | 2025-08-25 11:29:56 -0500 |
|---|---|---|
| committer | adamdotdevin <[email protected]> | 2025-08-25 11:29:56 -0500 |
| commit | 6357136ca51935ac130f2774109b8120bf151246 (patch) | |
| tree | b6f773c82fe278c6cf32f3e2b03764388e2df7e4 /packages/tui | |
| parent | 0a0b363587cdcc311382561092c1277a5544f4c2 (diff) | |
| download | opencode-6357136ca51935ac130f2774109b8120bf151246.tar.gz opencode-6357136ca51935ac130f2774109b8120bf151246.zip | |
fix(tui): sort custom commands lower
Diffstat (limited to 'packages/tui')
| -rw-r--r-- | packages/tui/internal/commands/command.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/tui/internal/commands/command.go b/packages/tui/internal/commands/command.go index 3a5287ca3..ae34f4b52 100644 --- a/packages/tui/internal/commands/command.go +++ b/packages/tui/internal/commands/command.go @@ -92,6 +92,12 @@ func (r CommandRegistry) Sorted() []Command { if b.Name == AppExitCommand { return -1 } + if a.Custom { + return -1 + } + if b.Custom { + return 1 + } return strings.Compare(string(a.Name), string(b.Name)) }) |
