gitlab-org--gitlab-foss/doc/workflow/shortcuts.md
Denys Mishunov 0aff8e2753 Set up basic keyboard next/previous navigation in diff list
Mousetrap is used as the help-tool to listen to keystrokes

Added currentDiffIndex getter to store that holds
the index of currently active diff file in the list

Instead of computing it on the component, we will take advantage of it
being available for all components in DiffsApp

Testing keyboard navigation and jumpToFile()
2019-02-27 09:12:13 +00:00

3.4 KiB

GitLab keyboard shortcuts

You can see GitLab's keyboard shortcuts by using 'shift + ?'

Global Shortcuts

Keyboard Shortcut Description
n Main navigation
s Focus search
f Focus filter
p + b Show/hide the Performance Bar
? Show/hide this dialog
Cmd/Ctrl + Shift + p Toggle markdown preview
Edit last comment (when focused on an empty textarea)

Project Files Browsing

Keyboard Shortcut Description
Move selection up
Move selection down
enter Open selection

Finding Project File

Keyboard Shortcut Description
Move selection up
Move selection down
enter Open selection
esc Go back

Global Dashboard

Keyboard Shortcut Description
g + a Go to the activity feed
g + p Go to projects
g + i Go to issues
g + m Go to merge requests
g + t Go to todos

Project

Keyboard Shortcut Description
g + p Go to the project's home page
g + v Go to the project's activity feed
g + f Go to files
g + c Go to commits
g + j Go to jobs
g + n Go to network graph
g + d Go to repository charts
g + i Go to issues
g + b Go to issue boards
g + m Go to merge requests
g + e Go to environments
g + k Go to kubernetes
g + s Go to snippets
g + w Go to wiki
t Go to finding file
i New issue

Network 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

Issues and Merge Requests

Keyboard Shortcut Description
a Change assignee
m Change milestone
r Reply (quoting selected text)
e Edit issue/merge request
l Change label
] or j Move to next file
[ or k Move to previous file

Wiki pages

Keyboard Shortcut Description
e Edit wiki page

Web IDE

Keyboard Shortcut Description
Cmd/Ctrl + p Go to file
Cmd/Ctrl + Enter Commit (when editing the commit message)