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