Skip to content

v0.1.5

Compare
Choose a tag to compare
@metaboulie metaboulie released this 03 Dec 06:32
· 48 commits to main since this release

Release Note: motheme v0.1.5

New Features

Theme Management Enhancements

  • remove Command:
    Added a new remove command to streamline theme file management:

    • motheme remove <theme-one-name> <theme-two-name> ...
    • Interactive Confirmation Prompt: Confirms deletions before proceeding.
    • Non-Existent Theme Detection: Alerts users when attempting to remove missing themes.
    • Multiple Theme Removal: Supports deletion of multiple themes in a single command.
    • Safe Deletion Checks: Ensures no unintended file deletions.
  • create Command:
    Introduced a create command for duplicating existing themes to kickstart customizations:

    • motheme create <ref-theme-name> <new-theme-name>
    • Arguments: Accepts a reference theme and a new theme name.
    • Validation: Ensures the reference theme exists and avoids overwriting existing themes.
    • Theme Duplication: Creates a copy of the reference theme with the specified name.
    • Quiet Mode: Optional --quiet flag for suppressing non-essential output.
    • Path Output: Prints the path to the newly created theme for easy reference.

Git-Ignore Integration

  • Added -i/--git-ignore flag for apply, clear, and current commands, enhancing file operations with:
    • motheme apply -r -i <theme-name> ./
    • Git-Tracked File Handling: Uses git ls-files to respect .gitignore rules.
    • Performance Optimizations: Caches results of git ls-files for repeated use.
    • Error Management: Gracefully handles errors from Git commands.

Improvements

  • Updated internal helper functions (expand_files) to support git-ignore filtering.

What's Changed

Full Changelog: v0.1.4...v0.1.5