Created
April 30, 2010 05:33
-
-
Save anonymous/384798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add command in TextMate | |
# Mapped to F1 | |
# Update Path to File | |
Save: Nothing | |
Command(s): | |
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\""; } | |
Input: None | |
Output: Discard | |
Activation: Key Equivalent (F1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment