@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Suggest Phurl URLs on "((..." in Remarkup text areas

Summary: Depends on D19108. Ref T12241. Ref T13077. See D19108. This extends the `[[ ...` autocompleter to `((...` for Phurl URLs.

Test Plan: Typed `((th`, got `((thing))` suggested.

Reviewers: avivey

Reviewed By: avivey

Maniphest Tasks: T13077, T12241

Differential Revision: https://secure.phabricator.com/D19109

+27 -9
+8 -8
resources/celerity/map.php
··· 528 528 'rsrc/js/phui/behavior-phui-tab-group.js' => '0a0b10e9', 529 529 'rsrc/js/phuix/PHUIXActionListView.js' => 'b5c256b8', 530 530 'rsrc/js/phuix/PHUIXActionView.js' => '442efd08', 531 - 'rsrc/js/phuix/PHUIXAutocomplete.js' => 'bb19ed2c', 531 + 'rsrc/js/phuix/PHUIXAutocomplete.js' => '623a766b', 532 532 'rsrc/js/phuix/PHUIXButtonView.js' => '8a91e1ac', 533 533 'rsrc/js/phuix/PHUIXDropdownMenu.js' => '04b2ae03', 534 534 'rsrc/js/phuix/PHUIXExample.js' => '68af71ca', ··· 881 881 'phui-workpanel-view-css' => 'a3a63478', 882 882 'phuix-action-list-view' => 'b5c256b8', 883 883 'phuix-action-view' => '442efd08', 884 - 'phuix-autocomplete' => 'bb19ed2c', 884 + 'phuix-autocomplete' => '623a766b', 885 885 'phuix-button-view' => '8a91e1ac', 886 886 'phuix-dropdown-menu' => '04b2ae03', 887 887 'phuix-form-control-view' => '16ad6224', ··· 1407 1407 'javelin-magical-init', 1408 1408 'javelin-util', 1409 1409 ), 1410 + '623a766b' => array( 1411 + 'javelin-install', 1412 + 'javelin-dom', 1413 + 'phuix-icon-view', 1414 + 'phabricator-prefab', 1415 + ), 1410 1416 '628f59de' => array( 1411 1417 'phui-oi-list-view-css', 1412 1418 ), ··· 1867 1873 'javelin-behavior', 1868 1874 'javelin-uri', 1869 1875 'phabricator-notification', 1870 - ), 1871 - 'bb19ed2c' => array( 1872 - 'javelin-install', 1873 - 'javelin-dom', 1874 - 'phuix-icon-view', 1875 - 'phabricator-prefab', 1876 1876 ), 1877 1877 'bcaccd64' => array( 1878 1878 'javelin-behavior',
+1
src/applications/phurl/typeahead/PhabricatorPhurlURLDatasource.php
··· 24 24 ->setDisplayName($url->getName()) 25 25 ->setName($url->getName()." ".$url->getAlias()) 26 26 ->setPHID($url->getPHID()) 27 + ->setAutocomplete('(('.$url->getAlias().'))') 27 28 ->addAttribute($url->getLongURL()); 28 29 29 30 $results[] = $result;
+12 -1
src/view/form/control/PhabricatorRemarkupControl.php
··· 73 73 )); 74 74 75 75 $phriction_datasource = new PhrictionDocumentDatasource(); 76 + $phurl_datasource = new PhabricatorPhurlURLDatasource(); 76 77 77 78 Javelin::initBehavior( 78 79 'phabricator-remarkup-assist', ··· 130 131 '|', 131 132 ']', 132 133 ), 133 - 'prefix' => '^\\[*', 134 + 'prefix' => '^\\[', 135 + ), 136 + 40 => array( // "(" 137 + 'datasourceURI' => $phurl_datasource->getDatasourceURI(), 138 + 'headerIcon' => 'fa-compress', 139 + 'headerText' => pht('Find Phurl:'), 140 + 'hintText' => $phurl_datasource->getPlaceholderText(), 141 + 'cancel' => array( 142 + ')', 143 + ), 144 + 'prefix' => '^\\(', 134 145 ), 135 146 ), 136 147 ));
+6
webroot/rsrc/js/phuix/PHUIXAutocomplete.js
··· 107 107 prior = '<start>'; 108 108 } 109 109 110 + // If this is a repeating sequence and the previous character is the 111 + // same as the one the user just typed, like "((", don't reactivate. 112 + if (prior === String.fromCharCode(code)) { 113 + return; 114 + } 115 + 110 116 switch (prior) { 111 117 case '<start>': 112 118 case ' ':