Closed Armadillidiid closed 1 year ago
Great news! To achieve automatic commit message generation using aicommits within Lazygit, simply press "C" (uppercase) instead of "c" (lowercase) when committing. This will trigger the precommit hook and open your Git editor with the generated commit messages ready for use. The option is labeled as "Commit messages using Git editor.
Feature request
I would like to request the integration of the aicommits CLI tool into Lazygit. Currently, aicommits is a useful tool for generating commit messages for my staged git commits. However, when using Lazygit, which is a terminal user interface (TUI) for Git, the automatic commit message generation provided by aicommits does not work when I press "c" to commit within the Lazygit interface.
Why?
Integrating aicommits into Lazygit would significantly enhance my workflow and streamline my Git commit process. Presently, when using Lazygit, I have to first stage the commit using the Lazygit interface and then switch to a second terminal to generate the commit message using aicommits. This extra step disrupts my efficiency and makes it less convenient to utilize aicommits for generating meaningful commit messages.
By integrating aicommits into Lazygit, I could benefit from the automatic commit message generation directly within the Lazygit interface. This integration would save time and effort, enabling me to focus more on coding and less on managing commit messages.
Alternatives
As of now, without the integration between aicommits and Lazygit, I have not found any direct method to use aicommits for automatically generating commit messages when committing changes within the Lazygit interface.