debian-mirror-gitlab/doc/user/shortcuts.md
2019-12-26 22:10:19 +05:30

7.5 KiB

type disqus_identifier
reference https://docs.gitlab.com/ee/workflow/shortcuts.html

GitLab keyboard shortcuts

GitLab has many useful keyboard shortcuts to make it easier to access different features. You can see the quick reference sheet within GitLab itself with Shift + ?.

The Global Shortcuts work from any area of GitLab, but you must be in specific pages for the other shortcuts to be available, as explained in each section below.

Global Shortcuts

These shortcuts are available in most areas of GitLab

Keyboard Shortcut Description
? Show/hide shortcut reference sheet.
Shift + p Go to your Projects page.
Shift + g Go to your Groups page.
Shift + a Go to your Activity page.
Shift + l Go to your Milestones page.
Shift + s Go to your Snippets page.
s Put cursor in the issues/merge requests search.
Shift + i Go to your Issues page.
Shift + m Go to your Merge requests page.
Shift + t Go to your To-Do List page.
p + b Show/hide the Performance Bar.

Additionally, the following shortcuts are available when editing text in text fields, for example comments, replies, or issue and merge request descriptions:

Keyboard Shortcut Description
Edit your last comment. You must be in a blank text field below a thread, and you must already have at least one comment in the thread.
(Mac) / Ctrl + Shift + p Toggle Markdown preview, when editing text in a text field that has Write and Preview tabs at the top.

Project

These shortcuts are available from any page within a project. You must type them relatively quickly to work, and they will take you to another page in the project.

Keyboard Shortcut Description
g + p Go to the project home page (Project > Details).
g + v Go to the project activity feed (Project > Activity).
g + r Go to the project releases list (Project > Releases).
g + f Go to the project files list (Repository > Files).
t Go to the project file search page. (Repository > Files, click Find Files).
g + c Go to the project commits list (Repository > Commits).
g + n Go to the repository graph page (Repository > Graph).
g + d Go to repository charts (Repository > Charts).
g + i Go to the project issues list (Issues > List).
i Go to the New Issue page (Issues, click New Issue ).
g + b Go to the project issue boards list (Issues > Boards).
g + m Go to the project merge requests list (Merge Requests).
g + j Go to the CI/CD jobs list (CI/CD > Jobs).
g + l Go to the project metrics (Operations > Metrics).
g + e Go to the project environments (Operations > Environments).
g + k Go to the project Kubernetes cluster integration page (Operations > Kubernetes). Note that you must have at least maintainer permissions to access this page.
g + s Go to the project snippets list (Snippets).
g + w Go to the project wiki (Wiki), if enabled.

Issues and Merge Requests

These shortcuts are available when viewing issues and merge requests.

Keyboard Shortcut Description
e Edit description.
a Change assignee.
m Change milestone.
l Change label.
r Start writing a comment. If any text is selected, it will be quoted in the comment. Can't be used to reply within a thread.
n Move to next unresolved discussion (Merge requests only).
p Move to previous unresolved discussion (Merge requests only).
] or j Move to next file (Merge requests only).
[ or k Move to previous file (Merge requests only).

Project Files

These shortcuts are available when browsing the files in a project (navigate to Repository > Files):

Keyboard Shortcut Description
Move selection up.
Move selection down.
enter Open selection.
esc Go back to file list screen (only while searching for files, Repository > Files then click on Find File).
y Go to file permalink (only while viewing a file).

Web IDE

These shortcuts are available when editing a file with the Web IDE:

Keyboard Shortcut Description
(Mac) / Ctrl + p Search for, and then open another file for editing.
(Mac) / Ctrl + Enter Commit (when editing the commit message).

Repository Graph

These shortcuts are available when viewing the project repository graph page (navigate to Repository > Graph):

Keyboard Shortcut Description
or h Scroll left.
or l Scroll right.
or k Scroll up.
or j Scroll down.
Shift + or Shift + k Scroll to top.
Shift + or Shift + j Scroll to bottom.

Wiki pages

This shortcut is available when viewing a wiki page:

Keyboard Shortcut Description
e Edit wiki page.

Epics (ULTIMATE)

These shortcuts are available when viewing Epics:

Keyboard Shortcut Description
r Start writing a comment. If any text is selected, it will be quoted in the comment. Can't be used to reply within a thread.
e Edit description.
l Change label.