Permalink
Browse files

• Added support for the ⌃H manual lookup to use a local copy of the m…

…anual, by setting PHP_MANUAL_LOCATION

git-svn-id: http://svn.textmate.org/trunk/Bundles/PHP.tmbundle@6898 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 64fe453 commit 25d64c8a87bb6bb0181ba3e0045dfc79ffd05796 @ciaran ciaran committed Mar 27, 2007
@@ -7,11 +7,26 @@
<key>bundlePath</key>
<string>/Users/kumar/Library/Application Support/TextMate/Bundles/Custom.tmbundle</string>
<key>command</key>
- <string>if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '[a-zA-Z0-9_]+'
- then exit_show_html "&lt;meta http-equiv='Refresh' content='0;URL=http://php.net/$TM_CURRENT_WORD'&gt;"
+ <string>if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '^[a-zA-Z0-9_]+$'
+ then
+ if URL=`grep -i "^$TM_CURRENT_WORD=" "/Users/ciaran/Bundles/PHP.tmbundle/Support/documentation.txt"`
+ then
+ URL=${URL:${#TM_CURRENT_WORD}+1}
+ else
+ URL="function.$TM_CURRENT_WORD"
+ fi
+ if [[ "$PHP_MANUAL_LOCATION" ]]
+ then
+ if [[ ! -f "$PHP_MANUAL_LOCATION/$URL.html" ]]
+ then
+ exit_show_tool_tip "No documenation found for '$TM_CURRENT_WORD'"
+ fi
+ URL="file://$PHP_MANUAL_LOCATION/$URL.html"
+ else URL="http://php.net/manual/${LANG:-en}/$URL.php"
+ fi
+ exit_show_html "&lt;meta http-equiv='Refresh' content='0;URL=$URL'&gt;"
else echo "Nothing to lookup (hint: place the caret on a function name)"
-fi
-</string>
+fi</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>Disable spellcheck in require</string>
+ <key>scope</key>
+ <string>meta.include.php string.quoted</string>
+ <key>settings</key>
+ <dict>
+ <key>spellChecking</key>
+ <integer>0</integer>
+ </dict>
+ <key>uuid</key>
+ <string>FD4397A8-415F-47BC-9F8D-E0F0EC364286</string>
+</dict>
+</plist>
@@ -0,0 +1,109 @@
+# This file is used to map words to PHP manual URLs
+
+# Control structures
+else=control-structures.else
+elseif=control-structures.elseif
+while=control-structures.while
+do=control-structures.do.while
+for=control-structures.for
+foreach=control-structures.foreach
+break=control-structures.break
+continue=control-structures.continue
+switch=control-structures.switch
+case=control-structures.switch
+declare=control-structures.declare
+if=language.control-structures
+
+# Constants
+__line__=language.constants.predefined
+__file__=language.constants.predefined
+__function__=language.constants.predefined
+__class__=language.constants.predefined
+__method__=language.constants.predefined
+
+# OOP
+new=language.oop5.basic
+class=language.oop5.basic
+extends=language.oop5.basic
+construct=language.oop5.decon
+destruct=language.oop5.decon
+public=language.oop5.visibility
+private=language.oop5.visibility
+protected=language.oop5.visibility
+abstract=language.oop5.abstract
+interface=language.oop5.interfaces
+interfaces=language.oop5.interfaces
+autoload=language.oop5.autoload
+__autoload=language.oop5.autoload
+reflection=language.oop5.reflection
+::=language.oop5.paamayim.nekudotayim
+parent=keyword.parent
+final=language.oop5.final
+abstract=language.oop5.abstract
+
+# Exceptions
+try=language.exceptions
+catch=language.exceptions
+throw=language.exceptions
+
+# Language internals
+function=language.functions
+global=language.variables.scope
+
+# Types
+number=language.pseudo-types
+mixed=language.pseudo-types
+bool=language.types.boolean
+boolean=language.types.boolean
+int=language.types.integer
+integer=language.types.integer
+float=language.types.float
+string=language.types.string
+heredoc=language.types.string
+<<<=language.types.string
+object=language.types.object
+null=language.types.null
+
+# Streams
+php_stream_stat_path=streams.php-stream-stat-path
+php_stream_stat=streams.php-stream-stat
+php_stream_open_wrapper=streams.php-stream-open-wrapper
+php_stream_read=streams.php-stream-read
+php_stream_write=streams.php-stream-write
+php_stream_eof=streams.php-stream-eof
+php_stream_getc=streams.php-stream-getc
+php_stream_gets=streams.php-stream-gets
+php_stream_close=streams.php-stream-close
+php_stream_flush=streams.php-stream-flush
+php_stream_seek=streams.php-stream-seek
+php_stream_tell=streams.php-stream-tell
+php_stream_copy_to_stream=streams.php-stream-copy-to-stream
+php_stream_copy_to_mem=streams.php-stream-copy-to-mem
+php_stream_make_seekable=streams.php-stream-make-seekable
+php_stream_cast=streams.php-stream-cast
+php_stream_can_cast=streams.php-stream-can-cast
+php_stream_is_persistent=streams.php-stream-is-persistent
+php_stream_is=streams.php-stream-is
+php_stream_passthru=streams.php-stream-passthru
+php_register_url_stream_wrapper=streams.php-register-url-stream-wrapper
+php_unregister_url_stream_wrapper=streams.php-unregister-url-stream-wrapper
+php_stream_open_wrapper_ex=streams.php-stream-open-wrapper-ex
+php_stream_open_wrapper_as_file=streams.php-stream-open-wrapper-as-file
+php_stream_filter_register_factory=streams.php-stream-filter-register-factory
+php_stream_filter_unregister_factory=streams.php-stream-filter-unregister-factory
+php_stream_opendir=streams.php-stream-opendir
+php_stream_readdir=streams.php-stream-readdir
+php_stream_rewinddir=streams.php-stream-rewinddir
+php_stream_closedir=streams.php-stream-closedir
+php_stream_fopen_from_file=streams.php-stream-fopen-from-file
+php_stream_fopen_tmpfile=streams.php-stream-fopen-tmpfile
+php_stream_fopen_temporary_file=streams.php-stream-fopen-temporary-file
+php_stream_sock_open_from_socket=streams.php-stream-sock-open-from-socket
+php_stream_sock_open_host=streams.php-stream-sock-open-host
+php_stream_sock_open_unix=streams.php-stream-sock-open-unix
+
+# Support classes
+dir=class.dir
+
+# Misc
+_=function.gettext
View
@@ -155,37 +155,9 @@
<string>PHP</string>
<key>ordering</key>
<array>
- <string>9C891C7B-CFA8-4860-B76F-4E3AD60B0E13</string>
+ <string>E0A973-D52130-C7BA25-40C7CE-C3A208-D42936</string>
<string>67F0800A-A5BC-4330-B8DF-B1D571027B92</string>
- <string>C81F7FF7-7899-48F5-AD79-F248B7BC3DCB</string>
- <string>774E75DA-A747-4CB4-B8AF-DE720B01E295</string>
- <string>412481DC-89B7-11D9-9FE3-000A9584EC8C</string>
- <string>EC271DAE-BEC9-11D9-8856-000D93589AF6</string>
- <string>BB471E3A-8CCD-11D9-B507-000D93C8BE28</string>
- <string>35F46C2E-8CCE-11D9-B507-000D93C8BE28</string>
- <string>4B72EA1F-8CCE-11D9-B507-000D93C8BE28</string>
- <string>609FE8EB-B251-11D9-872D-000D93C8BE28</string>
- <string>61DCF7E4-8CCE-11D9-B507-000D93C8BE28</string>
- <string>AC5561AA-8CCE-11D9-B507-000D93C8BE28</string>
- <string>C0229432-8CCE-11D9-B507-000D93C8BE28</string>
- <string>DA4B6728-8CCE-11D9-B507-000D93C8BE28</string>
- <string>F262B1FA-8CCE-11D9-B507-000D93C8BE28</string>
- <string>0D955946-8CCF-11D9-B507-000D93C8BE28</string>
- <string>1C06D786-8CCF-11D9-B507-000D93C8BE28</string>
- <string>0F39268F-8CD0-11D9-B507-000D93C8BE28</string>
- <string>EC96DA26-8CCF-11D9-B507-000D93C8BE28</string>
- <string>2B91DE5F-8CD0-11D9-B507-000D93C8BE28</string>
- <string>CBF8F204-8CCF-11D9-B507-000D93C8BE28</string>
- <string>7720523B-8CCE-11D9-B507-000D93C8BE28</string>
- <string>8AAEC70A-8CCF-11D9-B507-000D93C8BE28</string>
- <string>A94E02E2-8CCF-11D9-B507-000D93C8BE28</string>
- <string>60129434-8CCF-11D9-B507-000D93C8BE28</string>
- <string>6E25DCEF-8CCF-11D9-B507-000D93C8BE28</string>
- <string>34E2C808-8CCF-11D9-B507-000D93C8BE28</string>
- <string>4833C612-8CCF-11D9-B507-000D93C8BE28</string>
- <string>80D861BF-8CD0-11D9-B507-000D93C8BE28</string>
- <string>459B8A24-8CD0-11D9-B507-000D93C8BE28</string>
- <string>56873C6E-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>4404EB-DE806B-90BCB8-8E51D5-E3D9D2-5E5A66</string>
<string>E8BDF86F-8CD0-11D9-B507-000D93C8BE28</string>
<string>9B253562-8CD0-11D9-B507-000D93C8BE28</string>
<string>B90F3AE5-8CD0-11D9-B507-000D93C8BE28</string>
@@ -195,41 +167,78 @@
<string>19B4F695-8CD1-11D9-B507-000D93C8BE28</string>
<string>306E5B79-8CD1-11D9-B507-000D93C8BE28</string>
<string>40A7709D-8CD1-11D9-B507-000D93C8BE28</string>
- <string>22986475-8CA5-11D9-AEDD-000D93C8BE28</string>
- <string>5157F71C-2801-4385-92EA-3D0B72AEE7C5</string>
- <string>06276449-AA4E-424F-A2B6-9F4138416E50</string>
- <string>F15B444C-13E3-4A3C-83E1-4A6E0C1A84F3</string>
- <string>E2D08D2E-A99C-4F3A-9B1D-05A75D37A819</string>
- <string>EBD6D4CF-9F5E-4616-9880-5D3FF21EF408</string>
- <string>CA15DF69-E80D-46DA-BD45-E88C68E92117</string>
- <string>6F7E7868-F5A2-4B7D-ACFB-2A8DE2CD04E2</string>
- <string>775F7FCC-C43C-4C23-B935-9D5F6C25CF1D</string>
+ <string>BB471E3A-8CCD-11D9-B507-000D93C8BE28</string>
+ <string>117476CE-7A7F-4DC4-9A4E-772D282983A3</string>
+ <string>ED759470-69D7-4ADF-9842-D890DEB00F19</string>
+ <string>1E34E416-CD16-4C16-A369-9CDC3FAFD4C4</string>
+ <string>E863B097-0FD5-43D5-8547-235330081203</string>
+ <string>4F33617A-80FE-47D2-84AF-AA3D5D8A7128</string>
<string>26BC937A-5A0B-493E-B51F-1AF6E6FEFAD4</string>
- <string>9086BA3F-87E7-11D9-A6A3-000D93589AF6</string>
+ <string>9C891C7B-CFA8-4860-B76F-4E3AD60B0E13</string>
<string>C65A0A03-956D-11D9-B0A1-000D93382786</string>
- <string>90879700-87E7-11D9-A6A3-000D93589AF6</string>
<string>FDFDEE91-956D-11D9-B0A1-000D93382786</string>
- <string>9086E254-87E7-11D9-A6A3-000D93589AF6</string>
+ <string>90879700-87E7-11D9-A6A3-000D93589AF6</string>
+ <string>9086BA3F-87E7-11D9-A6A3-000D93589AF6</string>
<string>13266D30-956E-11D9-B0A1-000D93382786</string>
- <string>9087051B-87E7-11D9-A6A3-000D93589AF6</string>
+ <string>9086E254-87E7-11D9-A6A3-000D93589AF6</string>
<string>2CDD1B21-956E-11D9-B0A1-000D93382786</string>
<string>908774B1-87E7-11D9-A6A3-000D93589AF6</string>
- <string>42F50AE3-4F1C-43EB-9722-D80261A19625</string>
+ <string>9087051B-87E7-11D9-A6A3-000D93589AF6</string>
<string>90872B90-87E7-11D9-A6A3-000D93589AF6</string>
<string>90874D6F-87E7-11D9-A6A3-000D93589AF6</string>
- <string>94D8B40B-9F49-4B6D-90B5-DBFF5FB36590</string>
- <string>117476CE-7A7F-4DC4-9A4E-772D282983A3</string>
- <string>ED759470-69D7-4ADF-9842-D890DEB00F19</string>
- <string>4F33617A-80FE-47D2-84AF-AA3D5D8A7128</string>
- <string>1E34E416-CD16-4C16-A369-9CDC3FAFD4C4</string>
- <string>E863B097-0FD5-43D5-8547-235330081203</string>
- <string>F7751DAF-AC95-4D47-955F-FE2534FDE4F5</string>
+ <string>775F7FCC-C43C-4C23-B935-9D5F6C25CF1D</string>
+ <string>0F39268F-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>8AAEC70A-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>A94E02E2-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>1C06D786-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>2B91DE5F-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>609FE8EB-B251-11D9-872D-000D93C8BE28</string>
+ <string>61DCF7E4-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>AC5561AA-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>C0229432-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>EC96DA26-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>7720523B-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>4B72EA1F-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>35F46C2E-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>34E2C808-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>4833C612-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>CBF8F204-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>60129434-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>6E25DCEF-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>80D861BF-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>56873C6E-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>459B8A24-8CD0-11D9-B507-000D93C8BE28</string>
+ <string>F262B1FA-8CCE-11D9-B507-000D93C8BE28</string>
+ <string>DA4B6728-8CCE-11D9-B507-000D93C8BE28</string>
<string>FE39640E-A69C-48DF-9282-633672AAEFD2</string>
- <string>2543E52B-D5CF-4BBE-B792-51F1574EA05F</string>
+ <string>F7751DAF-AC95-4D47-955F-FE2534FDE4F5</string>
+ <string>0D955946-8CCF-11D9-B507-000D93C8BE28</string>
+ <string>246CA2-021460-D47E73-928E0B-15612B-5830C7</string>
<string>7E7936B6-7334-455B-A5ED-D51CA49CF532</string>
+ <string>42F50AE3-4F1C-43EB-9722-D80261A19625</string>
<string>19A164B7-4A3C-421B-9866-85FB9077A983</string>
- <string>B5E34751-D5EB-4AC8-9DB1-779BD6489C76</string>
+ <string>C81F7FF7-7899-48F5-AD79-F248B7BC3DCB</string>
<string>B3E79B47-40E9-4EF9-BAD9-11FEEE0D238F</string>
+ <string>412481DC-89B7-11D9-9FE3-000A9584EC8C</string>
+ <string>E8615F71-9DC4-44E8-AD24-D8226C8ABE54</string>
+ <string>EBD6D4CF-9F5E-4616-9880-5D3FF21EF408</string>
+ <string>94D8B40B-9F49-4B6D-90B5-DBFF5FB36590</string>
+ <string>B5E34751-D5EB-4AC8-9DB1-779BD6489C76</string>
+ <string>774E75DA-A747-4CB4-B8AF-DE720B01E295</string>
+ <string>EC271DAE-BEC9-11D9-8856-000D93589AF6</string>
+ <string>6F7E7868-F5A2-4B7D-ACFB-2A8DE2CD04E2</string>
+ <string>8D3A64-EAA9A4-E59DC1-54C81C-D8CEC6-E66786</string>
+ <string>691CBE-DC67C0-5A2CAC-503710-7105E2-02654B</string>
+ <string>22986475-8CA5-11D9-AEDD-000D93C8BE28</string>
+ <string>C25C81-477D55-01214A-9D88A7-2B9A97-04D815</string>
+ <string>06276449-AA4E-424F-A2B6-9F4138416E50</string>
+ <string>CBE2288F-76FC-4813-B69B-B90FFAE3391C</string>
+ <string>2543E52B-D5CF-4BBE-B792-51F1574EA05F</string>
+ <string>FD4397A8-415F-47BC-9F8D-E0F0EC364286</string>
+ <string>E2D08D2E-A99C-4F3A-9B1D-05A75D37A819</string>
+ <string>CA15DF69-E80D-46DA-BD45-E88C68E92117</string>
+ <string>F15B444C-13E3-4A3C-83E1-4A6E0C1A84F3</string>
+ <string>5157F71C-2801-4385-92EA-3D0B72AEE7C5</string>
</array>
<key>uuid</key>
<string>467A1966-6227-11D9-BFB1-000D93589AF6</string>

0 comments on commit 25d64c8

Please sign in to comment.