Skip to content

GoOz/StringMod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StringMod

About

StringMod is an Alfred workflow which allows you to modify strings of text to different kind of common text formatting types like :

  • lowercase
  • UPPERCASE
  • Capitalize
  • kebab-case
  • snake_case
  • SCREAMING_SNAKE_CASE
  • camelCase
  • PascalCase
  • URL Encode
  • URL Decode
  • Base64 Encode

Setup

No particular setup needed, although all keywords are customizable, if you need to.

Usage

Text selection

You can transform any selected text with universal actions by choosing your formatting type.

Screenshot of universal actions usage

Query

Or type the formatting type's keyword and then your text.

Screenshot of query usage

Clipboard

Finally, if you're currently not selecting any text and if you don't specify a query it will try to get the last item in your clipboard.

Screenshot of clipboard usage

Formatting specificities

Lowercase

It transforms any uppercase letter in your input to lowercase, including diacritics and ligatures.

Uppercase

It transforms any lowercase letter in your input to uppercase, including diacritics and ligatures.

Capitalize

It transforms every first letter of every word in your input to uppercase, including diacritics and ligatures.

Note

Contractions, such as "you're" (you are), are considered like one word. So in this example, only the "Y" will get capitalized.

Kebabcase

It transforms every letter to lowercase and then replaces every space with a dash - character.

Warning

Because this formatting is mostly used in an IT context and in IT world special characters are often problematic, diacritics and ligatures will be replaced with their basic latin letter counterparts.

Snakecase

Same as kebabcase but it replaces every space with an underscore _ character instead.

Screaming snakecase

Same as snakecase but it turns every letter to uppercase instead of lowercase.

Pascalcase

Every first letter of every word gets capitalized and then it joins every word together by removing spaces. Diacritics and ligatures are replaced as well.

Camelcase

Same as pascalcase except that the first word doesn't get a first letter capitalized.

URL Encode

It encodes a string of text to a compatible URL format (ASCII) by replacing special characters and spaces by hexadecmal codes.

URL Decode

It decodes a URL encoded string to a human readable text.

Base64 Encode

It encodes a string of text to a base64 format.

Installation

Download and add the workflow to Alfred
There's no external dependency needed

About

Alfred workflow to handle string modifications

Topics

Resources

License

Stars

Watchers

Forks

Contributors