VisualStudioCodeForCommandPalette icon indicating copy to clipboard operation
VisualStudioCodeForCommandPalette copied to clipboard

Deleting search string when entering the extension

Open standi98 opened this issue 6 months ago • 5 comments

Is your feature request related to a problem?

When entering the extensiona after searching for it, E.G: "vis" -> "Open Recent Visual Studio / Code". It keeps the "vis" search tag, requiring a button press to delete it.

Describe the solution you'd like

When entering the extension, the search string could be removed, since it often doesn't match the actual search string.

Describe alternatives you've considered

No response

Additional Context

No response

standi98 avatar May 26 '26 13:05 standi98

it is handled by Command Palette settings

You can play around with these two setting, should have one combination that works best for you.

Image

tanchekwei avatar May 28 '26 04:05 tanchekwei

Hmm, interesting. The normal "Search files" extension seems to have the wanted functionality. See attached gif:

Image

standi98 avatar May 28 '26 07:05 standi98

ok the behavior is due to new added fallback command. When typing on main page, it will set the extension search text. https://github.com/tanchekwei/VisualStudioCodeForCommandPalette/blob/1600cd7245ed6f36739927688c578d1c855d9c02/WorkspaceLauncherForVSCode/FallbackOpenRecentVisualStudioCodeItem.cs#L35

Tried disable the fallback from setting, but not working, command palette still calling the fallback handler.

The only workaround is to assign a global shortcut, like Alt + Space, so activating the extension will not require any typing at all.

tanchekwei avatar May 29 '26 13:05 tanchekwei

Will fix this issue when command palette support CommandResult.GoToPage https://github.com/tanchekwei/VisualStudioCodeForCommandPalette/commit/6c5fb8f451457904c55dbd4a2e140f5bf1c323af

tanchekwei avatar May 29 '26 13:05 tanchekwei

Nice!

Assigning an alias with a single character, like ".", and marking the activation as direct, also seems to work.

standi98 avatar May 29 '26 14:05 standi98