v0.1.5
Release Note: motheme v0.1.5
New Features
Theme Management Enhancements
-
remove
Command:
Added a newremove
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 acreate
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 forapply
,clear
, andcurrent
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
- Release/v0.1.4 by @metaboulie in #4
Full Changelog: v0.1.4...v0.1.5