wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.33k stars 136 forks source link

Feature request: Support for git commit -m #198

Closed obvionaoe closed 2 years ago

obvionaoe commented 2 years ago

Check list

Environment info

Feature

Hi, is it possible to add support for the git commit command? So, an interactive git commit message editor, basically!

Thanks

cjappl commented 2 years ago

Hi Luís,

Would you go into detail about what you’d want to see with this command?

Most of the forgit commands show either the git tree, or files that need to be added or diffed in some way.

The commit command, with the m flag is just a simple command that doesn’t really show any state.

If you elaborate on your idea a bit we can think about if we want it!

Also always open to PRs if you want to contribute.

On Tue, Apr 12, 2022 at 4:03 AM, Luís Guimarães @.***> wrote:

Check list

  • I have read through the README
  • I have the latest version of forgit
  • I have searched through the existing issues

Environment info

  • OS

  • Linux

  • Mac OS X

  • Windows

  • Others:

  • Shell

  • bash

  • zsh

  • fish

Feature

Hi, is it possible to add support for the git commit command? So, an interactive git commit message editor, basically!

Thanks

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

obvionaoe commented 2 years ago

Hi, sorry for the late reply, I was thinking something like this:

commit.jpg

Where you would be able to see the files you are commiting and the changes being made, so that you could type up the commit message in the top box based on what was shown on the diff

cjappl commented 2 years ago

Assigning to @wfxr for comments/thoughts

wfxr commented 2 years ago

so that you could type up the commit message in the top box based on what was shown on the diff

Search bar of fzf is for filtering inputs (items in the left side), not for text editing. You can just run git status -s or gd HEAD to check the changes before writing the commmit message git commit -m "...".