Skip to content

Allow resizing the commit message area #193

Closed

Description

@odrotbohm

It would be cool if one could resize the commit message area just like one can the staged files area. Especially if you're crafting more verbose commit messages, being cramped into that narrow little text field feels a bit claustrophobic 😉.

Thanks for the great work!

Activity

  1. DanPristupov commented on Jan 23, 2018

    @DanPristupov
    Contributor

    Hi Oliver!

    Yes, I agree. Actually I always wanted to do this like you described but never had enough free time :).

    I'll try to implement this soon. Hopefully won't get stuck because of the expand/collapse animation.

  2. DanPristupov commented on Mar 16, 2018

    @DanPristupov
    Contributor

    I did not implement resizing yet, but I reworked the commit message area in 1.0.65.
    2018-03-16 at 09 28

  3. nebhale commented on Mar 16, 2018

    @nebhale

    This is hijacking the resizing issue a bit, but this seems like the appropriate place to respond to the commit message area changes.

    I need to use it a bit more, but my initial impression of this change isn't great. The biggest issue is that if you try to write a commit message by habit, it's not clear what the result actually is.

    screen shot 2018-03-16 at 6 48 39 am

    This feels to me like an example of the UI being helpful, but it breaking the expectations of people who've spent time working at the command line.

    In the spirit of constructive criticism, maybe what's need is a much more definitive separation between subject and body. Not necessarily two boxes, but boundary lines, automatic trimming of the top empty space, or something along that path.

  4. DanPristupov commented on Mar 16, 2018

    @DanPristupov
    Contributor

    @nebhale Thank you very much for the feedback. I think current issue is a good place to discuss the topic.

    The biggest issue is that if you try to write a commit message by habit, it's not clear what the result actually is.

    It was the same before. I received feedback that people are not sure how many space will be placed between. It was a bit more clear though.

    My personal feeling about new layout is the following: I like where it goes, but the feature is not final yet. Let's try to improve it and if it won't work out fine, I'll revert my changes.

    So, the current problems:

    It's not obvious how many empty lines will be placed between the subject and body.

    We can add a more clear placeholder which will clarify this. Changing Description to Commit description makes it explicit, doesn't it?

    need ... much more definitive separation

    I can increase the empty space between Subject and Description and also add thin horizontal line.

    I'll make a mockup on the weekend...

  5. DanPristupov commented on Mar 16, 2018

    @DanPristupov
    Contributor

    OK, here's how it could look like:
    2018-03-16 at 15 52

    2018-03-16 at 15 53

  6. nebhale commented on Mar 16, 2018

    @nebhale

    That would be much more obvious.

    The keyboard interaction would be interesting to think about as well. Typing a commit message in a standard text editor would be <SUMMARY TEXT>+ENTER+ENTER+<DESCRIPTION TEXT>. I'm guessing the way the commit box works today is that the same keystrokes result in an extra newline in commit messages. It might be helpful to eat one of those newlines (effectively have it represented by the hairline) as part of the interaction. This way muscle memory doesn't result in a poorly formatted message.

    One thing that keeps nagging at me though is the thought that this might be prescribing too much in the UI. The summary + empty line + description is a convention (recommended certainly) but not a requirement. If you chose to buck this convention, say one big paragraph of text with multiple lines but no empty line, how would you even do that with this UI?

  7. DanPristupov commented on Jul 16, 2018

    @DanPristupov
    Contributor

    I made another change related to the description field. It's being resized automatically relying on the inner content up to a half of the screen. I also reduced jumping and blinking on focus.

    2018-07-16 at 14 47

    2018-07-16 at 14 47

    I'm pretty happy with the result and I think we can close the issue once the feature comes out publicly.
    You can try it already in this build: http://git-fork.com/update/files/Fork-1.0.68.5.dmg

  8. added this to the 1.0.69 milestone on Jul 19, 2018
  9. szeiger commented on Apr 4, 2019

    @szeiger

    I don't think the current design really solves the problem. I doubt I'm the only person who really hates to type text into such an automatically growing field at the bottom of the screen. I always want some empty space below the end of the content. This is something that editors like EMACS have done for decades.

    The lack of empty space also makes the page guide completely useless. Due to the low contrast it is already very hard to see if you have a decent amount of empty spacebut it is impossible to see behind the text without any empty space.

  10. gusutabopb commented on Aug 17, 2022

    @gusutabopb

    Any chance this can be revisited?
    The commit message area is one of the few elements in the UI that can't be resized. The sidebar can be resized, the unstaged pane can be resized, the staged pane can be resized, the diff pane can be resized. But for some reason the commit message area can't (it's .

    As the OP, I find it pretty claustrophobic and often go back to Sourcetree just because of this.

  11. claraguoguo commented on Sep 19, 2022

    @claraguoguo

    Same here. The commit message text field is really too small... Would be nice if we can make the UI resize-able!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions