mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
df2ed05edf
* Added Initial Microsoft.Plugin.Sys DevDoc * Reword * Updated Links within Readme * Corrected Case for URL
1.1 KiB
1.1 KiB
Sys Plugin
As the name suggests, the Sys Plugin is used to directly run Windows system commands that have been entered by the user as a query. This is done by parsing the entry and validating the command, followed by executing it.
- Shutdown
- Restart
- Sign Out
- Lock
- Sleep
- Hibernate
- Empty Recycle Bin
Sys
-
Tries to parse the user input and returns a specific Windows system command by using a
Result
list. -
While parsing, the Sys plugin uses
FuzzyMatch
to get characters matching a result in the list.
Score
CalculateSearchScore
A match found near the beginning of a string is scored more than a match found near the end. A match is scored more if the characters in the patterns are closer to each other, while the score is lower if they are more spread out.