All notable changes to Type Copy will be documented in this file.
- Automatic Setup Scripts: Three new installation scripts for hassle-free setup
setup.bat- Windows batch script with Python auto-installationsetup.ps1- PowerShell script with advanced featuressetup.sh- Linux/macOS bash script with OS detection
- Python Auto-Installation: Setup scripts can download and install Python automatically
- PATH Auto-Configuration: Automatically adds Python to system PATH
- Package Auto-Installation: Installs pyperclip without user intervention
- Clipboard Tool Detection: Linux setup installs xclip/xsel automatically
- Environment Verification: All setup scripts verify installation success
- Smart Detection: Checks existing Python installations before downloading
- Cross-Platform: Works on Windows 10/11, macOS, and major Linux distros
- User-Friendly: Color-coded output with clear progress indicators
- Error Handling: Detailed error messages and fallback options
- Zero Config: No manual PATH editing or registry changes needed
- Folder Exclusion: New
--exclude/-eflag to exclude specific folders- Example:
python copy.cs.md.py.py --exclude test --exclude docs - Can be used multiple times for multiple exclusions
- Works with relative paths and handles spaces in folder names
- Example:
- Command-line Arguments: Full argparse integration with
--helpsupport - Cross-Platform Tests: Comprehensive test suite (
test_copy.py)- Tests basic functionality, exclusions, and edge cases
- Platform-specific tests for Windows, macOS, and Linux
- 10 test cases covering all major features
- Windows Support Documentation:
- New
docs/WINDOWS_SETUP.mdwith detailed Windows setup guide - Covers execution policies, PATH setup, and common issues
- Batch file examples for easy Windows usage
- New
- Testing Documentation: New
docs/TESTING.mdwith testing guide - Windows Batch Files:
run_copy.bat- Smart launcher with dependency checkingrun_copy_no_tests.bat- Quick launcher with exclusions
- Better Error Messages: More informative output when things go wrong
- Exclusion Feedback: Shows which folders are being excluded during scan
- Improved Documentation: Complete rewrite of
README.md- Added feature highlights with emojis
- Step-by-step installation guide
- Platform-specific requirements clearly listed
- Windows execution policy explained
- Better examples and use cases
- Enhanced Output: Shows excluded folders during scanning
- Code Structure: Added proper imports (argparse, pathlib)
- Path handling for excluded directories on all platforms
- Edge case where excluded folder names appear in output
- Binary file detection improvements
- Cross-platform path normalization
- Minimum Python version: 3.7+
- Dependencies: pyperclip >= 1.9.0
- Tested on: macOS, Windows 10/11, Ubuntu 20.04+
- Basic file scanning and clipboard copying
- Extension detection from filename
- Markdown formatting with syntax highlighting
- Auto-ignore common folders (.git, node_modules, etc.)
- Colored console output
- File statistics (count, size, token estimate)
- Support for 20+ programming languages
No breaking changes! All existing usage continues to work.
New features you can start using:
-
Exclude folders (optional):
# Before (scans everything) python copy.cs.md.py.py # After (skip test folders) python copy.cs.md.py.py --exclude test --exclude node_modules
-
Get help (optional):
python copy.cs.md.py.py --help
-
Run tests (optional):
python test_copy.py
-
Use batch files on Windows (optional):
- Just double-click
run_copy.batinstead of typing commands
- Just double-click
That's it! Your existing scripts and workflows will work unchanged.