jezdez / textmate-missingdrawer

[UNMAINTAINED] A better sidebar for Textmate.
MIT License
724 stars 35 forks source link

New feature: source tree filtering #56

Closed legion80 closed 12 years ago

legion80 commented 12 years ago

Hello authors,

I wanted to extend the drawer to have some more Xcode-functionality--- namely, to include a search field at the bottom that allows you to filter the directories for files that contain the specified string.

It's very similar to what is found in Xcode 4. Even to focus the search I used the same shortcut (command-option-j).

It utilizes GCD but I think it should be ok for 10.6. The tool will save the state of the folders before it starts filtering, so that when you clear the search field, previously opened folders remain so. Also, changing the directory structure out of TM (say, touch a new file) will be reflected in the filter results when you return to TextMate.

The code probably need more testing, but even if you decide not to pull these changes, I just wanted to let you know about them and to try it out. Unfortunately because of the size of the search field I have to make the border view taller, which makes it misalign with the footer of the main screen. [Hehe, maybe make that footer taller too?] Also, with the additional height, the buttons could use new artwork.

There's another piece of functionality in Xcode 4 that I'd like to see in the drawer, but I think I will not be implementing-- which is to "Open Quickly...". By typing shift-command O a popup appears that allows you type in a string. As you type a list of file names that match the string appear. What's great about it is that it essentially inserts "*" between every character in the search string so that if you forget a word or misspell something you still have a good chance of finding the file you're looking for.

Finally, there's one sacred cow that I'd like to poke, and that is somehow merging MacGDBp functionality into TextMate. If I could have that also, then my ultimate IDE has been made. But I don't know how easy it is to hack the main text view.

Thanks for your consideration, Jon