Skip to content

[Good First Issue] Add Configuration File Editor #7

@SthembisoMfusi

Description

@SthembisoMfusi

🎯 Issue Description

Instead of manually editing JSON files, let's create a simple editor to modify sorting rules!

🚀 What You'll Learn

  • JSON file manipulation
  • User input validation
  • File I/O operations

📋 Tasks

  • Create config_editor.py
  • Load existing config file
  • Display current rules in a readable format
  • Allow adding/removing file extensions
  • Allow adding/removing categories
  • Save changes back to file
  • Add validation for JSON format

🛠️ Files to Modify

  • config_editor.py

💡 Hints

  • Use json.load() and json.dump()
  • Validate JSON before saving
  • Provide clear error messages

🧪 Testing

python config_editor.py

📚 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