lppedd / idea-conventional-commit

Context and template-based completion for conventional/semantic commits.
https://plugins.jetbrains.com/plugin/13389-conventional-commit
MIT License
327 stars 19 forks source link

Don't automatically add a space after the colon #67

Closed ctron closed 2 years ago

ctron commented 2 years ago

First of all, I really like this plugin!

However, what really annoys me: When I starting typing the commit message, it allows me to autocomplete (awesome!) … but then automatically adds a whitespace after the colon. Now, that may be ok in some cases. But when you know what you are doing, and just type ci:<space> … you will end up with ci:<space><space> … even though, you never requested auto-complete (by pressing Ctrl+Space).

I think this could fixed in two ways:

  1. Either: Don't add a space after the colon.
  2. Or: Don't automatically trigger code completion/suggestions.
lppedd commented 2 years ago

Yes, you're right that sometimes automatically adding a space can be seen as "too much help" 😄

In the meantime... One thing that I have worked hard to accomplish is inspections inside the commit panel. When you are finished writing your commit message, you should see possible errors or warnings

image

What I usually do is just CTRL+ALT+L (or whatever the shortcut is in the system) to adjust the message before commiting.
Inspections' quick-fixes should automatically remove unneeded whitespaces.

Let me know in case you have other ideas for inspections or quick-fixes, I'll add them if they sound good!

lppedd commented 2 years ago

New settings' option "Automatically insert a space after the colon". true by default.

image