gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

[enhancement] Commit editor more like git-driven EDITOR

Open OJFord opened this issue 1 year ago • 2 comments

Version

0.12.5

Operating System

Mac OSX

Distribution Method

dmg

Describe the issue

I know it's not for everyone, but I would like a wrap at 72ch for the body; a warning when the subject passes 50.

The editor/text field itself is also really small, which makes it difficult anyway & I appreciate would make it awkward to render a wrap at 72ch since it's already soft-wrapping at about 8 out of necessity - might have to pop a modal instead? The 'edit message' does appear in a modal editor, but it's still tiny anyway.

It would be convenient to have a 'rich' way of writing a code block, say just markdown style backticks which then turns it monospace, which then is actually committed as an indented block instead as is the norm (and which GitHub & GitLab for example also respect and will render as code blocks).

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

OJFord avatar Jun 19 '24 12:06 OJFord

Thanks for reporting! I did turn this issue into an enhancement as this could be a more intuitive way of writing commit message.

For one, the text box shouldn't be smaller than the suggested standard width, and additionally one could provide a rich markdown preview possibly with transformations to produce even more standard messages (e.g. backticks to indented code-blocks).

Byron avatar Jun 19 '24 19:06 Byron

I very much support this idea, as I have been struggling as well with the barebones editor in GitButler, with exactly the same issues..

Etsija avatar Oct 04 '24 16:10 Etsija