Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Integrated Options for Editing and Regenerating Commit Messages #250

Open
shkreios opened this issue Sep 7, 2023 · 4 comments

Comments

@shkreios
Copy link

shkreios commented Sep 7, 2023

Description

  1. Consider adding an integrated option for editing the generated commit message before finalizing.
  2. Alongside 'accept' and 'cancel,' include an integrated feature for easy commit message regeneration.

Suggested Solution

Integrated Editing Option

Add config option to have different style of editing enabled

  • UI Prompt: After a commit message is generated, present a text-based UI within the CLI that allows users to edit the message in place.
  • Temporary File: Alternatively, auto-open a temporary file (e.g., in Vim or another default editor) where the generated commit message can be edited.
  • Confirmation Step: Add a confirmation step after editing, so the user can review the edited message before proceeding with the commit.

Regenerate Commit Message Feature

Regenerate Option in UI: Alongside 'accept' and 'cancel,' include a 'regenerate' option in the CLI prompt. When selected, a new commit message is generated and the options are displayed again.

Alternatives

No response

Additional Context

In my experience, many generated commit messages require further refinement. I frequently find myself either copying messages to edit them manually or using git commit --amend for post-commit adjustments. Additionally, some messages are misaligned with their corresponding changes, necessitating frequent regenerations.

@github-actions
Copy link

Stale issue message

@jaroslaw-weber
Copy link
Contributor

i think it could be useful feature

@jaroslaw-weber
Copy link
Contributor

@di-sukharev can we reopen this? i could work on this when the ollama support is merged

@di-sukharev
Copy link
Owner

reopening, will take a look at this @jaroslaw-weber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants