Show HN: Komet – Native commit editor for macOS
github.com
github.com
[0] Up to date fork: https://rowanj.github.io/gitx/ [1] Original: http://gitx.frim.nl/
(personal nitpick: I'd love if the app showed me how to use it rather than having to consult to online instructions)
> Not being stuck in a save-and-close model, applying a
> commit takes only one action
Uh... `:wq`?I also prefer using a native editor and am more productive with spell checking and auto correction, surprisingly.
edit: I'm also not a user that uses the keyboard all the time. After using Komet, I am surprised how often I actually used the mouse to hit commit instead.
But it's arguably true that Vim is the wrong choice as the default commit editor since the majority of users probably will not feel very comfortable in that environment. In hindsight, nano would probably have been the better choice for default.
However, since I'm already a heavy Vim user (and have the vim-fugitive plugin installed), I would never go for anything else.
What about canceling commits? Sometimes you want to quit without saving, and other times you want to exit with a failure status (which has little application elsewhere). A "commit" editor should be smart enough to decide which to do under a single action.
I acknowledge this isn't intended for those heavily invested in their CLI editor of choice.
Relatedly, why would one remember to do :q! or :cq depending on if there's pre-existing content if they can just cancel in Komet and have it do the right thing ;)
> they can just cancel in Komet
What is `:q!` if not "just cancel[ling]"?I'll take four keystrokes over <move hand to mouse>, <move mouse to button>, <click button> (and a debatable <move hand back to keyboard>). Even if you count that as 3v4, the keystrokes are quicker than the mouse movements.
I get that not everyone wants to deal with vim, and may use a GUI editor for other stuff - but for something as small and specific as git commits, I really don't understand why you'd want to install something new; for what, a button?
And you largely misunderstood. Komet has a shortcut for making the commit (command return). The mouse is just a supplemental possibility....
Having a more convenient shortcut is not the only reason I use Komet.
[edit]: and to address for "something as small as commits" -- well, I write commits pretty often. So it matters a great deal to me to have an aiding tool, and definitely not for a task I'd consider 'insignificant'
Still, these are worse than Mac shortcuts that Komet uses IMO, and I dislike escape (and control to a lesser extent) :-).
Also you sometimes want to quit with an exit failure status on canceling, and why have two different operations for that when your editor is smart enough to have one.
I spend a lot of time on my computer not having at least one of my hands on the keyboard. Say I'm about done writing a commit message but I get a message on my phone I want to quickly check. It may be more convenient for me to use the mouse to hit commit later and then do some browsing tasks, or so. The other day I was doing some refactoring work while eating food in my other hand..
Nonetheless I believe having the option to use the mouse is better than not being able to.
Regardless, this app is quite nice.
I say that I predict using macOS will be "natural", although that doesn't necessarily mean it'll be "technically correct" for older versions.