Zed Editor Now Has Native Git Support for Coders!
Zed now has proper Git support. You can now commit, push, and manage branches without leaving the editor!
Zed now has proper Git support. You can now commit, push, and manage branches without leaving the editor!
Zed, the modern Rust-based code editor with AI superpowers, has had a busy year so far, recently introducing a new AI Edit Predictions power-up that learns from a Zed user's coding habits to then predict what their next move might be.
Nonetheless, the Zed team is not sitting idly by and has launched yet another major feature for Zed that looks to further spice up the user experience for developers.
Let's see what it's all about. 😀
Navigation and staging of Git changes on the macOS version of Zed. (Source: Zed)
In response to the many requests they received, the Zed developers have introduced native Git support with the Zed v0.177 release, allowing users to carry out common Git operations like committing, pushing, pulling, and staging. They have made it keyboard-centric so that it is more accessible than using both a mouse and keyboard.
All of that is tied into the new Git panel, which acts as the home for this new addition, giving users an overview of their working tree and staging area while also acting as the central hub for all Git operations.
There is also support for running git::Commit from the command palette, allowing for quick commits without the need for staging, and there is integration with the onboard AI system for automatically generating commit messages.
Additionally, the devs worked on rebuilding the text buffer to ensure that diffs blended in well with the editor. Deleted text is now shown with a special background, allowing users to select, copy-paste, and move it around with just the text cursor, without the need to use a mouse.
As part of future upgrades, they plan to work on bringing Git conflict resolution, line-by-line staging for allowing users to stage individual lines of code, history visualization, and more.
You can install Zed on your Linux system by running the following command and referring to the on-screen prompts:
curl -f https://zed.dev/install.sh | sh
There are also alternative packages available on the official website and Flathub.
Suggested Read 📖
Stay updated with relevant Linux news, discover new open source apps, follow distro releases and read opinions