Revision: 11110
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 24, 2009 15:16 by koncept
Initial Code
#!/bin/bash A=${TM_PROJECT_DIRECTORY:-""} B=${A##*/} C=${TM_FILEPATH:-""} D=${C/$A/\/$B} [[ ! -z $C ]] && { osascript -e "tell application \"TextMate\" to set name of window 1 to \"$D\""; } :
Initial URL
Initial Description
##Instructions 1. Create a new Command: Bundles > Bundle Editor > Edit Commands 2. Click the "+" button to add a new command 3. Give your command a descriptive name ("TM Path in title", for example) 4. Set the following properties on the command: {save:Nothing, Input:None, Output:Show as Tool Tip, Activation:⌥⌘T, Scope Selector: NULL} 5. Close the command window 6. Test out a document inside a project. The title should be replaced with an absolute path based on the root directory of your project. > Feedback and improvements are absolutely welcome. I'm looking to find a way to automatically fire this when a document is opened. Anybody know if this is possible?
Initial Title
TextMate command snippet - show document path in window title
Initial Tags
command, textmate, Bash
Initial Language
Bash