I'm looking for a plugin or bundle which enables TextMate to bind it's state to the current branch. By state I mean open tabs and open folders in the project drawer.
Here is my scenario:
- working on branch new-cool-feature, with open tabs file1.rb, file2.rb and folder app/model/a/b/ open in project drawer
- checkout production branch
- create new branch urgent-bug-fix
- at this point, all tabs and open folders should be closed in TextMate, so I can start fresh
- when I finish my work in urgent-bug-fix and checkout new-cool-feature, TextMate should re-open tabs file1.rb and file2.rb and should reopen folder app/model/a/b in the project drawer
Edit: changed the question to better express what I'm looking for