@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.

Remove "File Name" search tool

Summary: Removing this cleanly in event we want to put it back later. 99% of these cases are likely workable either by command line or the typeahead. Will gauge feedback if users notice.

Test Plan: Reload page, perform file grep search.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

authored by

Chad Little and committed by
chad
37489865 766ecf8d

-25
-25
src/applications/diffusion/controller/DiffusionBrowseController.php
··· 449 449 'limit' => $pager->getPageSize() + 1, 450 450 'offset' => $pager->getOffset(), 451 451 )); 452 - } else { // Filename search. 453 - $search_mode = 'find'; 454 - $query_string = $request->getStr('find'); 455 - $results = $this->callConduitWithDiffusionRequest( 456 - 'diffusion.querypaths', 457 - array( 458 - 'pattern' => $query_string, 459 - 'commit' => $drequest->getStableCommit(), 460 - 'path' => $drequest->getPath(), 461 - 'limit' => $pager->getPageSize() + 1, 462 - 'offset' => $pager->getOffset(), 463 - )); 464 452 } 465 453 break; 466 454 } ··· 470 458 $table = $this->renderGrepResults($results, $query_string); 471 459 $header = pht( 472 460 'File content matching "%s" under "%s"', 473 - $query_string, 474 - nonempty($drequest->getPath(), '/')); 475 - } else { 476 - $table = $this->renderFindResults($results); 477 - $header = pht( 478 - 'Paths matching "%s" under "%s"', 479 461 $query_string, 480 462 nonempty($drequest->getPath(), '/')); 481 463 } ··· 1595 1577 ->appendChild(pht('Search is not available in Subversion.')); 1596 1578 break; 1597 1579 default: 1598 - $forms[] = id(clone $form) 1599 - ->appendChild( 1600 - id(new AphrontFormTextWithSubmitControl()) 1601 - ->setLabel(pht('File Name')) 1602 - ->setSubmitLabel(pht('Search File Names')) 1603 - ->setName('find') 1604 - ->setValue($this->getRequest()->getStr('find'))); 1605 1580 $forms[] = id(clone $form) 1606 1581 ->appendChild( 1607 1582 id(new AphrontFormTextWithSubmitControl())