forked from Gipetto/wordpress.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show current file and line number on Trac
Useful for sending someone a quick link to a WordPress function. Find the point you want to show, and hit ^⌥⌘T… Safari will open to that file and line number on Trac. Caveat: Targets Trunk on Trac, not the current tag as I couldn't work out a var which set the current WordPress version.
- Loading branch information
Simon Wheatley
committed
Sep 28, 2011
1 parent
f623e53
commit 4fd1b9c
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>command</key> | ||
<string>WP_FILEPATH=${TM_FILEPATH/$TM_PROJECT_DIRECTORY/} | ||
open "http://core.trac.wordpress.org/browser/trunk/${WP_FILEPATH}#L${TM_LINE_NUMBER}"</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>keyEquivalent</key> | ||
<string>^~@t</string> | ||
<key>name</key> | ||
<string>Show on Trac Browser</string> | ||
<key>output</key> | ||
<string>discard</string> | ||
<key>scope</key> | ||
<string>source.php</string> | ||
<key>uuid</key> | ||
<string>2D72F453-25D4-4E8B-A261-349E4DD51BEA</string> | ||
</dict> | ||
</plist> |
This file contains 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