Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert snippets of text from manageable library #31425

Closed
rgmatthes opened this issue Feb 14, 2024 · 2 comments
Closed

Insert snippets of text from manageable library #31425

rgmatthes opened this issue Feb 14, 2024 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@rgmatthes
Copy link

rgmatthes commented Feb 14, 2024

Description of the new feature / enhancement

I have formulas, cmdlets, phrases etc. that I write many times a day. Some are quite long and tedious.

It'd be nice to be able to activate a shortcut that would allow me to select and insert one of these snippets of text wherever my cursor is placed. The snippets themselves could be created and managed in PowerToys settings.

Ideally if I select some text and insert a snippet, the snippet would incorporate that text accordingly. For example, imagine my snippet definition expects two words to be selected, so when it is inserted, those two words are used like variables to populate the snippet text. Maybe the user could select a different delineator other than space when defining their snippet, if e.g. a semi-colon or comma would be more useful for that snippet's purpose.

This is different from text expander approaches because those require the user to remember and type specific character strings for the text to be inserted, which doesn't scale to 50 or 100 snippets.

Scenario when this would be used?

  • When using Excel, a user could activate the snippet shortcut in the formula bar to insert an established formula instead of tracking it down from another spreadsheet or writing it from scratch. If utilizing the aforementioned text select feature, all the references would be correctly incorporated right from the start.
  • In PowerShell, a user could activate the snippet shortcut to pull in saved code structures. I have whole libraries of old scripts that are never exactly what I'm looking for, but are ultimately different arrangements of the same basic snippets. It would be faster for me to be able to quickly draw upon these snippets to build the code I need now vs. searching and combining old code.
  • Outlook does not easily support saved templates (a major shortcoming IMO). This tool would allow you to save snippets of common email language, even incorporating details like recipients names, dates and more.
  • The universality of this tool means similar needs can be met anywhere you type text -- Notepad++, an address bar (think parameters in a URL string), your LinkedIn correspondence, or dream bigger and think CRMs, ERPs, and HRIS tools.

Supporting information

No response

@rgmatthes rgmatthes added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Feb 14, 2024
@TheJoeFin
Copy link
Collaborator

/dup #1758

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants