PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

The extended alias cannot be reset after being modified.

Open pheotry opened this issue 7 months ago • 2 comments

Microsoft PowerToys version

0.91.1

Installation method

WinGet

Area(s) with issue?

Command Palette

Steps to reproduce

1.Set the alias = f

Image 2.Set the alias =file

Image 3.win alt space then input 'f'

https://github.com/user-attachments/assets/9bf350c9-52ef-43f8-a367-4bc9319f47e5

✔️ Expected Behavior

when input file activate search file.

❌ Actual Behavior

it will search file when you input f not file.

Additional Information

OS: win11 pro 26120.2702 System Language: Chinese User Installation Running as admin

Other Software

No response

pheotry avatar May 21 '25 03:05 pheotry

I'm having this issue too - changing the alias just adds another one (and doesn't remove the prior one).

I've been unable to reset/clear past aliases as well.

Have had this issue since v1 of Command Palette.

knives-repo avatar May 21 '25 12:05 knives-repo

Can you share the contents of %LocalAppData%\Packages\Microsoft.CommandPalette_8wekyb3d8bbwe\LocalState\settings.json?

I believe this is because the duplicated aliases got left behind in your settings file from 0.90, but didn't get cleaned up in 0.91

zadjii-msft avatar May 22 '25 17:05 zadjii-msft

Can you share the contents of %LocalAppData%\Packages\Microsoft.CommandPalette_8wekyb3d8bbwe\LocalState\settings.json?

I believe this is because the duplicated aliases got left behind in your settings file from 0.90, but didn't get cleaned up in 0.91

{ "Hotkey": { "win": true, "ctrl": false, "alt": true, "shift": false, "code": 32, "key": "" }, "ShowAppDetails": true, "HotkeyGoesHome": false, "BackspaceGoesBack": false, "SingleClickActivates": false, "HighlightSearchOnActivate": true, "ProviderSettings": { "AllApps": { "IsEnabled": true }, "Run": { "IsEnabled": true }, "Calculator": { "IsEnabled": true }, "Files": { "IsEnabled": true }, "Bookmarks": { "IsEnabled": true }, "WindowWalker": { "IsEnabled": true }, "WebSearch": { "IsEnabled": true }, "WinGet": { "IsEnabled": true }, "WindowsTerminalProfiles": { "IsEnabled": true }, "Windows.Settings": { "IsEnabled": true }, "Windows.Registry": { "IsEnabled": true }, "Windows.Services": { "IsEnabled": true }, "Core": { "IsEnabled": true }, "DateTime": { "IsEnabled": true }, "System": { "IsEnabled": true }, "VictorLin.EverythingCP_yazqh14evg2ve!App!ID": { "IsEnabled": true } }, "Aliases": { ":": { "CommandId": "com.microsoft.cmdpal.registry", "Alias": ":", "IsDirect": true }, "$": { "CommandId": "com.microsoft.cmdpal.windowsSettings", "Alias": "$", "IsDirect": true }, "=": { "CommandId": "com.microsoft.cmdpal.calculator", "Alias": "=", "IsDirect": true }, "\u003E": { "CommandId": "com.microsoft.cmdpal.shell", "Alias": "\u003E", "IsDirect": true }, "\u003C": { "CommandId": "com.microsoft.cmdpal.windowwalker", "Alias": "\u003C", "IsDirect": true }, "??": { "CommandId": "com.microsoft.cmdpal.websearch", "Alias": "??", "IsDirect": true }, "files ": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, ")": { "CommandId": "com.microsoft.cmdpal.timedate", "Alias": ")", "IsDirect": true }, "f ": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "f": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "file": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "files": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "fi": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "ij": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false }, "ij ": { "CommandId": "com.microsoft.indexer.fileSearch", "Alias": "file", "IsDirect": false } }, "CommandHotkeys": [], "SummonOn": "ToMouse", "UseLowLevelGlobalHotkey": false, "ShowSystemTrayIcon": true, "IgnoreShortcutWhenFullscreen": false }

pheotry avatar Jun 02 '25 03:06 pheotry

You are right, there were multiple copies of the aliases. Everything works as expected after removing them!

knives-repo avatar Jun 04 '25 19:06 knives-repo