Releases: SameerJS6/zed-cli-win-unofficial
Releases · SameerJS6/zed-cli-win-unofficial
v1.0.0
🎉 Introducing zed-cli-win-unofficial — the First CLI launcher for Zed on Windows!
We're excited to announce the initial release of zed-cli-win-unofficial — a dedicated command-line tool that brings native CLI support for the Zed editor on Windows. This tool is designed to make it easier for Windows users to launch Zed from the terminal, open files or folders, and customize their workflow, all without relying on shell hacks or workarounds.
This first version lays the foundation for a smooth, integrated experience and includes essential features like easy installation, configuration, and error handling — with more enhancements planned for future updates.
Release Note
For the End User:
✨ New Features
- Enhanced Installation Experience:
- Automated Setup: New PowerShell installation scripts automate the download, extraction, and PATH configuration for
zed-cli-win-unofficial. We've also added a combined script for installing both the Zed editor and the CLI. - Clearer Guidance: Installation now features a detailed welcome banner, improved logging, and clearer messages for various scenarios like "Zed not found" or "permission denied."
- Streamlined Configuration: A new CLI command allows you to easily set and get the Zed executable path.
- Automated Setup: New PowerShell installation scripts automate the download, extraction, and PATH configuration for
- "Open with Zed" Context Menu Integration:
- Easy Configuration: A new
contextcommand allows you to install and uninstall "Open with Zed" options directly from your Windows right-click context menu. - Improved Feedback: We've added specific banners and messages for context menu installation and uninstallation, so you always know what's happening.
- Easy Configuration: A new
- Improved User Feedback & Guidance:
- ASCII Art Banners: Enjoy more visually engaging feedback with new ASCII art banners for various scenarios, including titles, upgrade requirements, and installation statuses.
- Version Checks: The CLI now includes functions to retrieve and validate your Zed executable version, providing clearer guidance if an upgrade is required.
- Auto Directory Creation: When opening a non-existent folder, the CLI will create it automatically before launching Zed.
- Zed Version Limitation Notice: Multi-window support requires Zed
v0.177.0or later — older versions will show a warning. - Better Error Handling: We've focused on providing more descriptive error messages to help you troubleshoot issues quickly.
👉 See the README for full details and usage examples.
🛠️ Fixes
- Installation Path & Configuration: Addressed issues where the CLI wasn't configuring correctly due to path syntax errors and ensured the PATH environment variable refreshes for the current session.
- Context Menu Messaging: Clarified messages related to context menu installation to indicate updates as well.
- Robust Error Logging: Improved error handling in various functions, including Zed version determination, for clearer logging.
For Developers:
🚀 Enhancements
- Automated Release Workflow: Integrated GoReleaser for automated building and releasing of
zed-clifor Windows, including Scoop and Chocolatey manifest generation. - Structured Logging: Replaced direct print statements with consistent, structured logging functions across the codebase for improved debugging and maintainability.
- Refactored Codebase: Significant refactoring has been done to streamline installation scripts, consolidate helper functions, and improve overall code clarity. This includes:
- Removal of obsolete PowerShell scripts.
- Consolidation of utility functions into a dedicated PowerShell module.
- Simplified main function and removal of old, unused code.
- #10 Refactor: Improved console messages, added debug logs, registry key renamed, and general cleanup
- #8 refactor: restructure & clean up entire codebase
- GitHub Issue Templates: Added new issue templates for bug reports and feature requests, making it easier for users to provide valuable feedback.
🧹 Cleanups & Internal Changes
- Removed all usage of emojis in output to avoid potential unicode failures.
- Streamlined GoReleaser configuration by removing unnecessary comments and simplifying templates.
- Updated dependencies in
go.modandgo.sumfor improved functionality and consistency.
What's Changed
- add: initial version by @SameerJS6 in #1
- feat: Implement
Open with Zedcontext menu feature by @SameerJS6 in #7 - refactor: restructure & clean up entire codebase by @SameerJS6 in #8
- Refactor: Improved console messages, added debug logs, registry key renamed, and general cleanup by @SameerJS6 in #10
- feat: Add GitHub action with
goreleaser& issue templates by @SameerJS6 in #9
Full Changelog: https://github.com/SameerJS6/zed-cli-win-unofficial/commits/v1.0.0