📅 2020-Jun-19 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cheatsheet, gitlab ⬩ 📚 Archive
Gitlab supports many keyboard shortcuts, which can be seen listed here.
Some of my favorites:
[
and ]
: Switch to prev/next file in diffs.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
The web UI can be used to search for a string in a given repository using this link: https://gitlab.com/search.
This results in a URL like this: https://gitlab.com/search?search=%22foobar%22&project_id=9999
where the search string is foobar
and 9999
is the project ID.