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

Selected Text Replacement/Enhancing #36820

Open
unrealed opened this issue Jan 11, 2025 · 0 comments
Open

Selected Text Replacement/Enhancing #36820

unrealed opened this issue Jan 11, 2025 · 0 comments
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@unrealed
Copy link

Description of the new feature / enhancement

This tool would let you quickly modify selected text with a few different options.

You'd select text, press this tool's shortcut, and be presented with a quick menu for how to modify the selected text.

Here is a list of modifications/enhancements that I can think of:

  • Sentence case: capitalize the first letter of the first word
  • Title Case: capitalize the first letter of EACH word
  • Title Case with exception: capitalize the first letter of each word with some exceptions like "of", "or", "and", etc
  • Case inverter: switch lower and uppercase. For when you didn't realize you had Caps Lock on
  • camelCase: remove spaces between words and convert the first letter of each word after the first to a capital letter.
  • Programming Title Case: remove spaces between words and convert the first letter of each word to a capital letter.
  • Space remover: remove spaces between each word. ("I wanna talk fast !" -> "Iwannatalkfast!")
  • Hyphenation: add hyphens between each word. ("tug of war" -> "tug-of-war")
  • Encircler: Add a certain character before the first character and after the last character, such as quotation marks, parentheses, curly braces, dashes, hyphens, or anything else. (Maybe this could be split up into several modifiers, though one that lets you choose the actual character would be nice)
  • Caesar Cypher: replace certain characters with other ones. For example, L, E, and T being replaced by 1, 3, and 7 respectively ("1337 speak"). Having savable presets for this one would be nice
    And I'm sure there could be many, many more, especially for coders.

This tool would help edit text errors that are very common and do so much faster than normal, so it'd be very useful!

Scenario when this would be used?

A typical example would be you've changed your mind and now want to put the selected text between parentheses, so you press the tool's shortcut, choose the "Encircler - Parenthesis" option from the menu, and your selected text is now enclosed by parentheses.

Another would be that you didn't realize you had Caps Lock on and typed "hEY, HOW ARE YOU?" but don't want to retype that, so you use the Case Inverter from the menu to fix it

Supporting information

Having some sort of scheme in place where we could set up our own replacements could be really powerful too. I could see someone having to change tons of pieces of text in a file saving tons of time if we could create our own schemes for this (maybe using regex)

@unrealed unrealed added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant