Page MenuHomePhabricator

Add a SublimeText-style repository typeahead
ClosedPublic

Authored by epriestley on May 13 2014, 3:10 AM.
Tags
None
Referenced Files
F18428173: D9087.diff
Sun, Aug 31, 1:04 AM
F18352804: D9087.id21637.diff
Wed, Aug 27, 12:01 AM
F18352803: D9087.id21592.diff
Wed, Aug 27, 12:01 AM
F18111429: D9087.diff
Tue, Aug 12, 11:01 AM
F18103452: D9087.id21637.diff
Sun, Aug 10, 5:32 AM
F18095712: D9087.id21592.diff
Fri, Aug 8, 1:43 AM
F18087743: D9087.diff
Wed, Aug 6, 5:16 AM
F17924321: D9087.id.diff
Jul 30 2025, 9:38 AM
Subscribers

Details

Summary

Allows you to quickly search for files within a repository. Roughly:

  • We build a big tree of everything and ship it to the client.
  • The client implements a bunch of Sublime-ish magic to find paths.
Test Plan

Screen_Shot_2014-05-12_at_7.42.54_PM.png (1×1 px, 295 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Add a SublimeText-style repository typeahead.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad.
epriestley added a subscriber: zeeg.
btrahan edited edge metadata.

awesometown

webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
120–126

is purging the cache necessary? i'd hope in practice this isn't necessary, and otherwise i'd guess we're need an LRU-style cache with a memory limit or something to keep performance in line.

This revision is now accepted and ready to land.May 13 2014, 9:03 PM

This will probably need some tweaks (and if your repository has like 100K files in it I'm not sure how usable it will be) but we can see what issues we hit. For Phabricator-sized repos it feels pretty good to me.

webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
120–126

It shouldn't be necessary, but in theory a user can leave the page open for a day and type "a", "aa", "ab", etc., and potentially use a lot of memory. During normal use this shouldn't matter but I trust users to be inventive when it comes to this kind of thing.

epriestley updated this revision to Diff 21637.

Closed by commit rP436f0563e81f (authored by @epriestley).