Turadg
Turadg

Reputation: 7681

Automatically reveal current file in TextMate project drawer

There is a key chord to highlight the current document in the project drawer but I want it to happen automatically.

Is there any way to make TextMate reveal files automatically by expanding the parent hierarchy whenever I switch documents? If possible, I'd also like to collapse that hierarchy to its prior state when the file loses focus.

(For background, as a point of comparison: In Eclipse I can link the Navigator with the currently active editor to always show the currently edited file in the hierarchy of files. It does highlight the file if it's visible in the project drawer, but I want it to reveal files hidden in collapsed folders. )

Upvotes: 22

Views: 4130

Answers (3)

nitrnitr
nitrnitr

Reputation: 488

Had this same question. Didn't find an answer googling and emailed their support.

Preferences → Projects, Keep current document selected

should do it on TextMate 2.

Upvotes: 0

Turadg
Turadg

Reputation: 7681

TextMate can't do this natively but it can be added with a plugin.

Project+ does it already.

Missing Drawer may have added the feature by the time you read this.

Upvotes: 5

katrash
katrash

Reputation: 345

You can do this by using the combinations Ctrl+Command+R

Upvotes: 32

Related Questions