Remove magic "help" in global search
Summary: Fixes T7425. Overall, this is surprising and confusing after jump nav was merged with global search. Test Plan: Searched for "help", got documents matching the word "help". Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: chasemp, epriestley Maniphest Tasks: T7425 Differential Revision: https://secure.phabricator.com/D11936
This commit is contained in:
		| @@ -4,10 +4,8 @@ final class PhabricatorJumpNavHandler { | |||||||
|  |  | ||||||
|   public static function getJumpResponse(PhabricatorUser $viewer, $jump) { |   public static function getJumpResponse(PhabricatorUser $viewer, $jump) { | ||||||
|     $jump = trim($jump); |     $jump = trim($jump); | ||||||
|     $help_href = PhabricatorEnv::getDocLink('Jump Nav User Guide'); |  | ||||||
|  |  | ||||||
|     $patterns = array( |     $patterns = array( | ||||||
|       '/^help/i'                  => 'exturi:'.$help_href, |  | ||||||
|       '/^a$/i' => 'uri:/audit/', |       '/^a$/i' => 'uri:/audit/', | ||||||
|       '/^f$/i' => 'uri:/feed/', |       '/^f$/i' => 'uri:/feed/', | ||||||
|       '/^d$/i' => 'uri:/differential/', |       '/^d$/i' => 'uri:/differential/', | ||||||
| @@ -18,7 +16,7 @@ final class PhabricatorJumpNavHandler { | |||||||
|       '/^p\s+(.+)$/i' => 'project', |       '/^p\s+(.+)$/i' => 'project', | ||||||
|       '/^u\s+(\S+)$/i' => 'user', |       '/^u\s+(\S+)$/i' => 'user', | ||||||
|       '/^task:\s*(.+)/i' => 'create-task', |       '/^task:\s*(.+)/i' => 'create-task', | ||||||
|       '/^(?:s|symbol)\s+(\S+)/i'  => 'find-symbol', |       '/^(?:s)\s+(\S+)/i' => 'find-symbol', | ||||||
|       '/^r\s+(.+)$/i' => 'find-repository', |       '/^r\s+(.+)$/i' => 'find-repository', | ||||||
|     ); |     ); | ||||||
|  |  | ||||||
| @@ -28,10 +26,6 @@ final class PhabricatorJumpNavHandler { | |||||||
|         if (!strncmp($effect, 'uri:', 4)) { |         if (!strncmp($effect, 'uri:', 4)) { | ||||||
|           return id(new AphrontRedirectResponse()) |           return id(new AphrontRedirectResponse()) | ||||||
|             ->setURI(substr($effect, 4)); |             ->setURI(substr($effect, 4)); | ||||||
|         } else if (!strncmp($effect, 'exturi:', 7)) { |  | ||||||
|           return id(new AphrontRedirectResponse()) |  | ||||||
|             ->setURI(substr($effect, 7)) |  | ||||||
|             ->setIsExternal(true); |  | ||||||
|         } else { |         } else { | ||||||
|           switch ($effect) { |           switch ($effect) { | ||||||
|             case 'user': |             case 'user': | ||||||
|   | |||||||
| @@ -10,7 +10,6 @@ a navigational command into the box and press return. | |||||||
|  |  | ||||||
| = Supported Commands = | = Supported Commands = | ||||||
|  |  | ||||||
|   - **help** - Jump to this document. |  | ||||||
|   - **T** - Jump to Maniphest. |   - **T** - Jump to Maniphest. | ||||||
|   - **T123** - Jump to Maniphest Task 123. |   - **T123** - Jump to Maniphest Task 123. | ||||||
|   - **D** - Jump to Differential. |   - **D** - Jump to Differential. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 epriestley
					epriestley