On 07.04.2009, at 10:25, Scott Haneda wrote:
On Apr 7, 2009, at 12:15 AM, Hans-Jörg Bibiko wrote:
On 07.04.2009, at 08:58, Scott Haneda wrote:
In php, I have seen someone type in array_keys() and somehow, they are able, in that completion, or at a later time, get it to insert the template arguments: array_keys ( array $input [, mixed $search_value [, bool $strict= false]] )
type in the <?php ?> environment within an HTML doc array press ⌥⎋ and type further e.g. "_k" select "array_keys" from the pull-down menu and you get array_keys(array input, mixed search_value, [bool strict])
Hmmm, no matter how I try that one, I can not get it to work, maybe since I am on a laptop, and the keys are a little different. Can you point me to the docs on this feature?
Which TM version do you have? I have Version 1.5.8 (1499).
Did you use the latest php bundle? Look by using the Bundle Editor inside of php bundle for "Completions for Word…"
#!/usr/bin/env ruby -wKU require ENV['TM_SUPPORT_PATH'] + '/lib/osx/plist' require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
choices = OSX::PropertyList.load(File.read(ENV['TM_BUNDLE_SUPPORT'] + '/functions.plist')) TextMate::UI.complete(choices, :initial_filter => ENV['TM_CURRENT_WORD'], :extra_chars => '_')
Do you see this?
If not update the PHP bundle (e.g. by using GetBundles)
--Hans