[TxMt] Open Quickly for TextMate

Chris Thomas chris at cjack.com
Tue Jan 11 22:36:43 UTC 2005


Emulate the CodeWarrior/Xcode Open Quickly feature, but open all 
matches instead of just the first one. (NSAttributedString, I'm looking 
at you.)

####
find /usr/include 
/System/Library/Frameworks/ApplicationServices.framework 
/System/Library/Frameworks/AppKit.framework 
/System/Library/Frameworks/Foundation.framework 
/System/Library/Frameworks/Kernel.framework -name `osascript -e "tell 
application \"SystemUIServer\"
  activate
  display dialog \"Find and open which header?\" default answer 
\"$TM_SELECTED_TEXT\"
  set headername to text returned of the result
  do shell script (\"/bin/echo \" & headername & \"*\")
end tell"` -print -exec open -a TextMate {} \; &
####

A refined version of this may show up in the C bundle soon. Meanwhile, 
feedback is welcome.

Have fun,
Chris



More information about the textmate mailing list