microsoft/PowerToys

Macros/Snippets in PowerToys Run (with ability to execute)

Open

#15,032 opened on Dec 16, 2021

View on GitHub
 (11 comments) (25 reactions) (0 assignees)C# (7,978 forks)batch import
Help WantedIdea-EnhancementProduct-PowerToys Run

Repository metrics

Stars
 (133,154 stars)
PR merge metrics
 (Avg merge 14d 20h) (117 merged PRs in 30d)

Description

Description of the new feature / enhancement

Add snippet support to PowerToys Run analogous to the Snippets and Text Expansion feature of Alfred for macOS, e.g.

sn <label>

Would insert user-defined text identified by at the cursor's position.

Scenario when this would be used?

This would be used to insert repetitive text anywhere a user does so, for instance:

  • Entering an email address in a login form could be reduced from typing the entire email to <PowerToys Run Shortcut> sn e <enter>
  • Inserting a template for a task
  • Inserting a template for a tweet
  • etc

The possibilities are limitless 🚀

Supporting information

I think the best supporting information is provided by AlfredApp's help page on the feature.

crutkas: this should be larger and include concepts like search engine launch. I think we should have some easy pre-defined things like "{browser} https://stackoverflow.com/search?q={0}" so so foo would just properly launch

Contributor guide