Pasting a commit message into the commit message panel is cumbersome, because you need to paste the subject into the upper field and the body into the lower field. Having copied a commit message using y m, the clipboard contains both, so there's no easy way to get the subject and body into their respective fields.
Pasting the whole thing into the subject field is especially problematic, see #3151. Pasting it into the description field is a little better, but then you still need to cut the subject line from the description and paste it into the subject field.
It would be nice if the commit message menu (the one that you open with ctrl-o) had an entry "Paste commit message from clipboard" that splits the clipboard into subject and description and pastes both into their respective fields.
A few details to consider:
What do we do if the text in the clipboard is not in "commit message format", i.e. there's no blank line between subject and description? I'd suggest not to care; simply split at the first \n.
What if the user has already started typing things into either the subject or body fields, or both? Do we append, or do we overwrite what's there? Overwriting might be annoying, but we could put up a confirmation.
I'm putting a "good first issue" label on this, it doesn't seem very difficult to do.
Pasting a commit message into the commit message panel is cumbersome, because you need to paste the subject into the upper field and the body into the lower field. Having copied a commit message using
y m
, the clipboard contains both, so there's no easy way to get the subject and body into their respective fields.Pasting the whole thing into the subject field is especially problematic, see #3151. Pasting it into the description field is a little better, but then you still need to cut the subject line from the description and paste it into the subject field.
It would be nice if the commit message menu (the one that you open with ctrl-o) had an entry "Paste commit message from clipboard" that splits the clipboard into subject and description and pastes both into their respective fields.
A few details to consider:
\n
.I'm putting a "good first issue" label on this, it doesn't seem very difficult to do.