diff options
| author | adamdotdevin <[email protected]> | 2025-07-16 14:20:19 -0500 |
|---|---|---|
| committer | adamdotdevin <[email protected]> | 2025-07-16 14:20:28 -0500 |
| commit | f7dd48e60dbe0fe05ddd8720af2dba619eae5b0f (patch) | |
| tree | 267ddf2bf64718346fa47d6c430eb8331a5e50b0 /packages/tui/internal/completions | |
| parent | 93c779cf4832ce2166ae1012047015fec19ae2c0 (diff) | |
| download | opencode-f7dd48e60dbe0fe05ddd8720af2dba619eae5b0f.tar.gz opencode-f7dd48e60dbe0fe05ddd8720af2dba619eae5b0f.zip | |
feat(tui): more ways to quit
Diffstat (limited to 'packages/tui/internal/completions')
| -rw-r--r-- | packages/tui/internal/completions/commands.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/tui/internal/completions/commands.go b/packages/tui/internal/completions/commands.go index 80c9de4f7..2ffe3ea94 100644 --- a/packages/tui/internal/completions/commands.go +++ b/packages/tui/internal/completions/commands.go @@ -77,7 +77,6 @@ func (c *CommandCompletionProvider) GetChildEntries( return items, nil } - // Use fuzzy matching for commands var commandNames []string commandMap := make(map[string]CompletionSuggestion) @@ -86,17 +85,13 @@ func (c *CommandCompletionProvider) GetChildEntries( continue } space := space - lipgloss.Width(cmd.PrimaryTrigger()) - // Add all triggers as searchable options for _, trigger := range cmd.Trigger { commandNames = append(commandNames, trigger) commandMap[trigger] = c.getCommandCompletionItem(cmd, space) } } - // Find fuzzy matches matches := fuzzy.RankFindFold(query, commandNames) - - // Sort by score (best matches first) sort.Sort(matches) // Convert matches to completion items, deduplicating by command name |
