Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,870
Community Members
 
Community Events
184
Community Groups

Keyboard shortcut for getting [the cursor] to the "Commit message" text box?

Is there a keyboard shortcut for getting [the cursor] to the "Commit message" text box?

If "yes", great. What is it?

If "no", how can I create one (with macOS or via Keyboard Maestro, for instance) ?

If one can't create such a keyboard shortcut within the current Sourcetree constraints, could you please consider adding this capability?

 

Thanks.

 

1 answer

1 accepted

0 votes
Answer accepted

Shift-Command-C

 

This is the menubar command:

 

Repository > Commit...

Yes, but the behavior of Shift-Command-C is context-dependent.

  1. If you don't have staged files, this shortcut gets [the cursor] to the "Commit message" text box (without further ado). This is nice, because the shortcut places the cursor at the first writable position, so you can continue where you left off if you already have some text there.
  2. If you have staged files and there is text in the in the "Commit message" text box, this shortcut will commit the staged files immediately (and will push them immediately if you have checked "Push changes immediately . . .")
  3. If you have staged files but you don't have a Commit message in the "Commit message" text box, this shortcut will attempt to commit and will warn you that the Commit Message is empty (if you haven't checked "Do not show this message again"). 

It would be convenient to have the possibility of two separate shorctuts that would always behave consistently, regardless of context:

  1. A shortcut that does (1) regardless of the state of Staged Files. 
  2. A different shortcut that does (2) and, if you don't have a commit message, warns you with (3)

Thank you.

Hmm. I cannot reproduce the issues you're having.

For me, Shift-Command-C always moves the text input cursor to the Commit Message box.

If the cursor is already there, it seemingly does nothing (although it does briefly grey out the "Push Changes Immediately" label).

This is regardless of what I have staged.

Pressing CMD-Enter "clicks" the Commit button.

So I do my staging via the mouse, press Shift-Command-C, write my commit message, then press Command-Enter.

I do that all the time, every day. I've NEVER had a problem with Shift-Command-C actually immediately committing the commit.

We may be running different versions.

I'm running Sourcetree 3.3 (226) on macOS Mojave 10.4.6.

 

I appreciate your comments.

The above was tested on 3.2 on Mojave. I've just upgraded to 3.2.1 and see the same thing.

The app tells me:

 > Sourcetree 3.2.1 is currently the newest version available.

Oops. Perhaps I used the wrong forum for the Beta versions.

Sorry.

Like pkamb likes this

@F.A.R how did you get into the beta program? Are beta release notes available anywhere? cheers.

Please see:

https://www.sourcetreeapp.com

(under "Join the Sourcetree Beta Program")

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events