Add a Phurl Typeahead

Authored by chad on Feb 11 2017, 10:02 PM.


Diff Detail

rP Phabricator
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
chad created this revision.Feb 11 2017, 10:02 PM
epriestley accepted this revision.Feb 11 2017, 10:29 PM

If you name a URL "Apple" but give it the alias "zebra" (so you reference it with ((zebra))) I think you should be able to find it by typing zebra. Currently, I believe it won't. You should be able to do this like this:

  • Make setName() (which is what it matches when typed) be "{$name}\n{$alias}".
  • Make setDisplayName() (which is what is shown to the user) be just the name.
This revision is now accepted and ready to land.Feb 11 2017, 10:29 PM
This revision was automatically updated to reflect the committed changes.