Skip to content

Heck-R/PowerToys.Run.Plugin.RandomPicker

Repository files navigation

PowerToys.Run.Plugin.RandomPicker

A PowerToys plugin to pick stuff randomly

Installation

Manual

  • Download the latest release
  • Unzip the contents into the PowerToys Plugin folder
    Usual locations include:
    • C:\Program Files\PowerToys\PowerToys.exe
    • %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins
  • Restart PowerToys

Automatic

Use ptr, which is a nice plugin manager CLI tool

ptr add RandomPicker Heck-R/PowerToys.Run.Plugin.RandomPicker

Features

There are 3 major sections

menu

Both typing and arrow keys and enter (or clicks) can navigate the menu, as it is effectively autofill

Pick

To define a list, use the following format: <RandomDefinition>[ <ResultCount>[ <MaxRepCount>]]

Where

  • <RandomDefinition> is: <item>[:weight][;<item>[:weight][...]]
  • <ResultCount> and <MaxRepCount> are whole numbers, defaulting to 1

E.g.: apple:5;peach:2;orange 7 2
Meaning: Pick 7 random elements from apple, peach and orange, but make apple have 5 times likely to be chosen (compared to normal) and peach 2 times as likely, but only allow 2 of each to appear at most (which means that there will only be 6 items picked, since all 3 can only appear twice at most -> 6 items will be generated)

To make sure the picking only takes effect when the items are all written out, the picking has to be initiated by selecting the default option at the top

random_definition

After pressing enter:

result

Example images

list weight max_count

History

Show the history of the random definitions (only those for which generation was triggered, and each only once)

Note that only the random definition is saved

history

Favorites can be saved from the history

favorite_history

Favorites

Favorites can be selected for picking

favorites

Favorites can be removed

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published