Skip to content

Add a keyboard shortcut to quickly open the Web IDE from any repo view

What does this MR do and why?

The MR introduces the keybinding . (dot) to quickly navigate to WebIDE when surfing a project or an MR

The keybinding is enabled for the following scenarios:

Scenario View with the keystroke enabled Resulting WebIDE view
user is navigating a repository tree (just navigating the repository moving through different folders/files). Navigating to WebIDE will preserve the current position in the repository tree Screenshot_2021-10-08_at_00.38.35 Screenshot_2021-10-08_at_00.38.39
user is on a single-file view in a repository. WebIDE will show the viewed file right away Screenshot_2021-10-08_at_00.39.53 Screenshot_2021-10-08_at_00.40.17
user is on any page within an MR ("Overview", "Commits", "Changes"). WebIDE opens the "Review" tab for the MR in question Screenshot_2021-10-08_at_00.43.30 Screenshot_2021-10-08_at_00.43.43

How to set up and validate locally

  1. Go to any project OR file in a project OR an MR
  2. Click . (dot)
  3. The window should be reloaded with the correct Web IDE path

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #340095 (closed)

Edited by Jacques Erasmus

Merge request reports