Skip to content

Implement native shell scripts for cross-platform text transformations with clipboard integration#1

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-454084e8-8896-4e49-a699-3008307147b7
Draft

Implement native shell scripts for cross-platform text transformations with clipboard integration#1
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-454084e8-8896-4e49-a699-3008307147b7

Conversation

Copy link
Copy Markdown

Copilot AI commented Sep 27, 2025

This PR implements a comprehensive collection of native shell scripts for Linux, macOS, and Windows PowerShell that provide Unicode-based text transformations with automatic clipboard functionality.

Features Implemented

Text Transformations

  • Rage Flip: Converts text to upside-down Unicode characters (Hello World!¡plɹoM ollǝH)
  • Word Flip: Reverses word order (Hello World EveryoneEveryone World Hello)
  • Underline: Adds Unicode combining underline characters (HelloH̲e̲l̲l̲o̲)
  • sArCaSm: Alternating case transformation (This is so coolThIs Is So CoOl)
  • Strikethrough: Adds Unicode combining strikethrough (HelloH̶e̶l̶l̶o̶)

Cross-Platform Support

  • Unix/Linux/macOS: Bash scripts with comprehensive clipboard support (pbcopy, xclip, xsel, wl-clipboard)
  • Windows: PowerShell scripts with native Set-Clipboard integration
  • All scripts automatically detect and use available clipboard utilities

User Experience Enhancements

  • Unified Scripts: Single command access to all transformations via text_flip.sh (Unix) and TextFlip.ps1 (Windows)
  • Interactive Mode: all command shows all transformations and allows user selection
  • Automated Installation: install.sh script handles setup, testing, and clipboard utility detection
  • Comprehensive Documentation: Detailed README with installation instructions and usage examples

Usage Examples

# Quick install and setup
git clone https://github.com/stringsn88keys/script_flips.git
cd script_flips
./install.sh

# Individual transformations
./unix/text_flip.sh rage "Hello World!"
./unix/text_flip.sh sarcasm "This is amazing"

# Interactive mode - see all effects and choose
./unix/text_flip.sh all "Your text here"
# Windows PowerShell
.\windows\TextFlip.ps1 rage "Hello World!"
.\windows\TextFlip.ps1 all "Your text here"

Technical Implementation

  • Unicode character mapping for rage flip transformation
  • Combining Unicode characters (U+0332, U+0336) for underline/strikethrough
  • Cross-platform clipboard detection and fallback handling
  • Error handling and user-friendly messaging
  • Platform-native implementations without external dependencies

The scripts are immediately ready for use and provide a polished experience for text transformation across all major platforms.

Original prompt

Build native shell scripts for Linux, macOS, PowerShell to provide rage flip, unicode word flip, underline, sArCaSm text, strikethrough text, etc using unicode that auto copies to the native clipboard.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits September 27, 2025 21:21
Co-authored-by: stringsn88keys <252056+stringsn88keys@users.noreply.github.com>
Co-authored-by: stringsn88keys <252056+stringsn88keys@users.noreply.github.com>
Copilot AI changed the title [WIP] Build native shell scripts for Linux, macOS, PowerShell to provide rage flip, unicode word flip, underline, sArCaSm text, strikethrough text, etc using unicode that auto copies to the native clipboard. Implement native shell scripts for cross-platform text transformations with clipboard integration Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants