adobe/brackets — pull request #2298 by njx (2012-12-06 22:53:26+00:00)
Title: Change dialog label for Quick Open based on mode

For #1705. Builds on @sagarsane's original pull request (#1706) to update the dialog label if the user changes the mode by editing the query string.

This ended up being a little complicated because we find out about changes to the query string through the `_handleFilter` callback to smart-autocomplete. This callback originally was just a module function, so didn't have the context of the dialog available. (We could have just directly looked up the ID in the global DOM, which other code in QuickOpen currently does, but it seems cleaner to actually look for it in the context of the dialog element.) So I changed this and some other related functions to be methods of QuickNavigateDialog instead.