sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

Feature request: Add support for spelling checks in the commit subject and description fields

Open antikmozib opened this issue 9 months ago • 7 comments

Big thanks to the devs for creating such an awesome app! This has totally become my go-to Git GUI tool.

One little thing though—when I’m quickly committing changes, I sometimes mess up the spelling. It’d be amazing if the commit subject and description fields could highlight spelling errors to save me from those awkward typos.

Thanks a ton!

antikmozib avatar Mar 26 '25 02:03 antikmozib

Some time ago, I built a functional PoC (which I still use) of a spell checker. The problem was that people didn’t like having to download the dictionaries, so the topic was left unresolved. I considered suggesting some kind of plug-in or extension support, but I must admit I couldn’t come up with a concrete proposal. If you’d like to contribute in any way, here’s the PR:

https://github.com/sourcegit-scm/sourcegit/pull/483

GustavoHennig avatar Mar 26 '25 19:03 GustavoHennig

The problem was that people didn’t like having to download the dictionaries, so the topic was left unresolved.

As I commented earlier, this can be solved if you utilize system-wide components. On Linux, hunspell dictionaries can be installed system-wide with package manager, so end user don't need to download/update/maintain dictionaries by hand. On Windows and MacOS built-in spellchecker can be used.

aikawayataro avatar Mar 27 '25 05:03 aikawayataro

That’s exactly where I stopped. It got too complicated to implement it 3 times — the built-in APIs aren’t that intuitive (they rely on COM/WinRT, for example). I thought about doing it like most cross-platform apps do, such as Firefox and LibreOffice — by downloading dictionaries automatically. It would be easier. Personally, I think this approach makes the most sense for a cross-platform project. It’s not even about which solution is better — no matter how willing I am, I simply don’t have the resources to implement this using the built-in APIs. Or maybe this could be done through plugins. But once this topic makes it into the roadmap, I’ll be happy to contribute.

GustavoHennig avatar Mar 27 '25 14:03 GustavoHennig

This would be really good, I'm always committing spelling mistakes and my boss makes fun of me :(

Nevenit avatar Apr 03 '25 04:04 Nevenit

Could we get a Harper plugin/integration?

Nevenit avatar Jun 24 '25 01:06 Nevenit

The more I have typos and rely on tools checking it for me, the less confident I became and more rely on these tools. 🙉

ameaninglessname avatar Oct 18 '25 16:10 ameaninglessname

I'm new to SourceGit (investigating it to replace Sourcetree) and this is one thing I already miss 😄

asmaloney avatar Oct 20 '25 21:10 asmaloney