adobe/brackets — pull request #7015 by peterflynn (2014-02-27 00:34:30+00:00)
Title: Exclude files from Find in Files operations

Initial cut at [Find in Files exclusions](https://trello.com/c/7Svh6B4Z/1085-exclude-files-folders-from-an-individual-find-in-files-operation). Sans unit tests for now.

* New FileFilters module manages the UI (picker dropdown & editor dialog), glob-matching APIs, and MRU list preference.
* New DropdownButton widget hoisted out from CSSInlineEditor for reuse as a filter picker in the search bar UI (removes about 100 lines of code from CSSInlineEditor module).
* Switches search bar to use the standard ModalBar `autoClose` behavior, rather than its own one-off focus tracking logic.
* Enhances ModalBar with two new capabilities:
* Can specify an `isLockedOpen()` function that keeps the bar open regardless of focus changes. Needed for existing Find in Files functionality - bar stays open while search in progress.
* Popups launched from widgets inside the bar can take focus without closing it (even when parented to `

`) if they specify an "attached-to" attribute pointing back at the widget inside the bar. Needed for newly-added picker dropdown.