String Formatter - Raycast Extension

A powerful string formatting Raycast extension with intelligent separator detection, character removal, custom decorators, and output formatting.
๐ Features
Input Processing
- ๐ค String Input: Support for multi-line string input
- ๐๏ธ Character Removal: Remove specified characters or strings
- ๐ Smart Separator Detection: Automatically detect separators in input strings
- โ๏ธ Manual Separator Selection: Support for comma, semicolon, space, pipe, tab, newline, etc.
Output Formatting
- ๐จ Decorator Selection: Support for single quotes, double quotes, backticks, square brackets, parentheses, curly braces
- ๐ค Custom Output Separator: Configurable output result separator
- ๐ Deduplication: Optional removal of duplicate elements (enabled by default)
- ๐ Real-time Preview: Instantly display formatting results as you type
- ๐ One-click Copy: Quick copy of formatted results to clipboard
User Experience
- ๐ฏ Smart Interface: Clear separation between input and output areas with dividers
- โ ๏ธ Error Handling: Friendly error messages and exception handling
- โจ๏ธ Keyboard Shortcuts: Convenient keyboard operations
๐ Usage Examples
Basic Example
Input: a,b,c
Input Separator: Auto Detect (detects comma)
Decorator: Single Quote (')
Output Separator: Comma (,)
Deduplication: โ
Enabled
Output: 'a','b','c'
Advanced Example
Input: (apple);(banana);(cherry)
Remove Characters: ()
Input Separator: Auto Detect (detects semicolon)
Decorator: Square Brackets []
Output Separator: Newline (\n)
Output:
[apple]
[banana]
[cherry]
Complex Example
Input: "item1" | "item2" | "item3"
Remove Characters: "
Input Separator: Pipe (|)
Decorator: Backtick () **Output Separator**: Semicolon (;) **Output**: `` item1;item2;item3` ``
Deduplication Example
Input: apple,banana,apple,cherry,banana
Input Separator: Auto Detect (detects comma)
Decorator: Double Quote (")
Output Separator: Comma (,)
Deduplication: โ
Enabled
Output: "apple","banana","cherry"
โจ๏ธ Keyboard Shortcuts
Cmd + C: Copy formatted result
Cmd + R: Reset form
๐ ๏ธ Installation
- Make sure Raycast is installed
- Run in project directory:
npm install
- Development mode:
npm run dev
- Build:
npm run build
๐ง Development
# Install dependencies
npm install
# Development mode
npm run dev
# Code linting
npm run lint
# Fix code formatting
npm run fix-lint
๐ License
MIT License