Restore editor behavior to Diffusion and support "\" shortcut
commitef69c7969f58623a2fb18089446e5e26c1a33eb4
authorepriestley <git@epriestley.com>
Sun, 19 Apr 2020 14:41:20 +0000 (19 07:41 -0700)
committerepriestley <git@epriestley.com>
Sun, 19 Apr 2020 16:41:37 +0000 (19 09:41 -0700)
treef0624f99cca1ff49e61fc8480e833e4e8d551f29
parent537ff68edda2f623da958b1bb73bac038b74f8e8
Restore editor behavior to Diffusion and support "\" shortcut

Summary:
Ref T13515. This restores the "Open in Editor" behavior to Diffusion, and makes "\" work there.

The URI pattern is now sent as a structured template to the client, so the code will work properly if a file path contains "%l".

Test Plan:
  - Clicked "Open in Editor" and pressed "\" in Diffusion when viewing a file.
  - Clicked a line, hit "\", got the file opened to that line.

Maniphest Tasks: T13515

Differential Revision: https://secure.phabricator.com/D21149
resources/celerity/map.php
src/applications/diffusion/controller/DiffusionBrowseController.php
src/infrastructure/editor/PhabricatorEditorURIEngine.php
webroot/rsrc/js/core/behavior-line-linker.js