kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[VSCode] Improve sorting of slash-commands

Open shssoichiro opened this issue 5 months ago • 3 comments

Description

When a user enters a slash-command into the prompt input, the sorting of the returned results appears to always match the commands loading order, which is not useful to users. It would be preferable if exact matches and prefix matches are sorted first, given that the first result is the one that is selected by default. This would reduce the annoyance on users from the unexpected current state where typing an exact command name and hitting Enter inserts a command other than the one that was typed.

Current state example, where I would expect /commit to be at the top, highlighted by default, because it is an exact match:

Image

Plugins

No response

Kilo version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

shssoichiro avatar Jun 22 '26 13:06 shssoichiro

Agree, this is weird

markijbema avatar Jun 22 '26 13:06 markijbema

Yeah, I had not thought of that when I designed that implementation. That's a slip-up on my part, because I remember I designed the slash command implementation.

I don't currently have time to create a PR because I want to merge auto-approve in the CLI first. It would be appreciated if you guys could handle that work.

thomasbrugman avatar Jun 22 '26 18:06 thomasbrugman

Hey I have raised a PR! Feel free to take a look.

rakshith1928 avatar Jun 23 '26 06:06 rakshith1928