Skip to content

[Good First Issue] Add Support for Custom File Naming Patterns #8

@SthembisoMfusi

Description

@SthembisoMfusi

🎯 Issue Description

Allow users to rename files during organization based on patterns (e.g., add date, remove spaces, etc.).

🚀 What You'll Learn

  • String manipulation
  • Regular expressions
  • Configuration parsing

📋 Tasks

  • Add naming pattern configuration to JSON
  • Implement pattern matching and replacement
  • Add common patterns (date, clean names, etc.)
  • Handle duplicate names
  • Add dry-run support for renaming

🛠️ Files to Modify

  • py_sort.py
  • config.json

💡 Hints

  • Use re module for pattern matching
  • Add patterns like {date}, {clean}, {lower}
  • Test with various file names

🧪 Testing

python py_sort.py ~/Downloads --dry-run

📚 Resources

❓ Questions?

Feel free to ask questions in the comments or start a discussion!

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions