Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Gitlab cheatsheet

📅 2020-Jun-19 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

Gitlab supports many keyboard shortcuts, which can be seen listed here.

Add a comment

Leaving a non-review comment on a merge request is a frequent operation for me, but it used to be quite inefficient. Previously I had to scroll down to the bottom of a merge request page, bring my mouse cursor into the bottom comment box, click into it, type out the comment, move the mouse cursor again to the Submit button and click it.

Now with keyboard shortcuts it can be done like this: Press r in a merge request page - the page is automatically scrolled down and your cursor is placed in the comment box. Now type out the comment. To submit, press Tab once - the keyboard focus is on the Submit button. Press Enter to submit the comment.

So, the workflow can be done without mouse now: r -> Type comment -> Tab -> Enter