From 84cd4a385450c099ce644b2830c904e45c1b67fa Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 18 Apr 2020 09:51:08 -0700 Subject: [PATCH] Move "External Editor" settings to a separate settings group Summary: Ref T13515. It's not intuitive that these settings are "Display Preferences", even thought they're intenrally related to some of the other display preferences. Give them a separate group. Test Plan: {F7370500} Maniphest Tasks: T13515 Differential Revision: https://secure.phabricator.com/D21140 --- src/__phutil_library_map__.php | 2 ++ ...PhabricatorExternalEditorSettingsPanel.php | 24 +++++++++++++++++++ .../PhabricatorEditorMultipleSetting.php | 2 +- .../setting/PhabricatorEditorSetting.php | 2 +- .../user/userguide/external_editor.diviner | 2 +- 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index de4c0d3791..009fd4f696 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -3328,6 +3328,7 @@ phutil_register_library_map(array( 'PhabricatorExternalAccountIdentifierQuery' => 'applications/auth/query/PhabricatorExternalAccountIdentifierQuery.php', 'PhabricatorExternalAccountQuery' => 'applications/auth/query/PhabricatorExternalAccountQuery.php', 'PhabricatorExternalAccountsSettingsPanel' => 'applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php', + 'PhabricatorExternalEditorSettingsPanel' => 'applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php', 'PhabricatorExtraConfigSetupCheck' => 'applications/config/check/PhabricatorExtraConfigSetupCheck.php', 'PhabricatorFacebookAuthProvider' => 'applications/auth/provider/PhabricatorFacebookAuthProvider.php', 'PhabricatorFact' => 'applications/fact/fact/PhabricatorFact.php', @@ -9794,6 +9795,7 @@ phutil_register_library_map(array( 'PhabricatorExternalAccountIdentifierQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorExternalAccountQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorExternalAccountsSettingsPanel' => 'PhabricatorSettingsPanel', + 'PhabricatorExternalEditorSettingsPanel' => 'PhabricatorEditEngineSettingsPanel', 'PhabricatorExtraConfigSetupCheck' => 'PhabricatorSetupCheck', 'PhabricatorFacebookAuthProvider' => 'PhabricatorOAuth2AuthProvider', 'PhabricatorFact' => 'Phobject', diff --git a/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php b/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php new file mode 100644 index 0000000000..9e402b1492 --- /dev/null +++ b/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php @@ -0,0 +1,24 @@ + Application Settings > -Display Preferences} and set "Editor Link" to a URI pattern (see below). This +External Editor} and set "Editor Link" to a URI pattern (see below). This will enable an "Open in Editor" link in Differential, and an "Edit" button in Diffusion.