ITADN
KKV9/compress.yazi

版本发布 1

v0.5.00.5
? · 2025-06-02

### Release Notes for `compress.yazi` v0.5.0 --- #### 🚀 **New Features** - **Multi-Format Compression Support**: - Added support for additional archive formats, including `.tar.zst`, and `.tar.lha`. - Improved cross-platform compatibility for Unix and Windows systems. - **Compression Level Control**: - Introduced the ability to set compression levels using the `-l` flag. - Supports fine-tuning compression speed vs. size for supported formats. - **Password Protection and Header Encryption**: - Added `-p` flag for password-protected archives (zip/7z/rar). - Added `-h` flag for header encryption (7z/rar). - **Temporary Directory Handling**: - Archives are now created in a temporary directory to ensure atomic operations. - Temporary directories are cleaned up automatically after successful or failed operations. - **Overwrite Protection**: - If a file with the same name exists, a suffix `_#` is appended to avoid overwriting. --- #### 🛠️ **Improvements** - **Command Validation**: - Improved detection of available archive and compression commands using `command -v` (Unix) or `where` (Windows). - Fallback to default commands if specific binaries are unavailable. - **Error Handling**: - Enhanced error notifications for failed archive creation, compression, or file movement. - Added cleanup routines to remove temporary directories in case of errors. - **Keymap Enhancements**: - Updated keymap examples to include combined flags and extensions. - Added support for single-quoted combined flags (e.g., `'-ph 7z'`). - **Cross-Platform Compatibility**: - Improved Windows support by leveraging 7-Zip for `.zip`, `.7z`, and `.tar.*` formats. - Added instructions for installing required tools like 7-Zip, WinRAR, and additional compression utilities. --- #### 📖 **Documentation Updates** - **README.md**: - Expanded the "Supported File Types" table to include detailed commands for Unix and Windows. - Added examples for combining multiple flags (e.g., `'-ph 7z'`). - Clarified installation instructions for both Unix and Windows platforms. - Improved usage instructions with step-by-step guidance. - **Keymap Examples**: - Added new keymap examples for advanced use cases, such as password-protected 7z archives and compression level control. --- #### 🐛 **Bug Fixes** - Fixed an issue where extensions like `.tar` were not properly handled when additional compression was applied. - Resolved a bug where invalid flags or extensions caused crashes instead of showing error notifications. - Improved handling of combined flags to ensure proper parsing and execution. --- #### 📥 **Installation** - Unzip the binary to your plugins folder - Unix: `~/.config/yazi/plugins/compress.yazi` - Windows `%AppData%\yazi\config\plugins\compress.yazi` --- Enjoy the new features and improvements in `compress.yazi` v0.5.0! 🚀