Files
Lance Martin 208ce05031 feat: add filename pattern support for threads command
Add --filename-pattern option to threads command with sensible default
behavior for saving multiple thread files.

Changes:
- Add --filename-pattern option with default {thread_id}.json
- Support {thread_id}, {index}, and {idx} placeholders
- Support format specifications like {index:03d}
- Add sanitize_filename() helper for cross-platform safe filenames
- Add regex validation to ensure pattern contains valid placeholders
- Add test coverage for custom filename patterns
- Update .gitignore to exclude example/ directory

The validation uses regex to handle both simple placeholders like
{index} and format specifications like {index:03d}, ensuring flexible
file naming for bulk thread operations.
2025-12-09 15:06:16 -08:00

45 lines
346 B
Plaintext

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# Virtual environments
venv/
ENV/
env/
.venv
# IDEs
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Config (local)
.env
# Example/testing code
example/