diff --git a/Commands/Jump to Included File.tmCommand b/Commands/Jump to Included File.tmCommand index 41aa944..8489f0f 100644 --- a/Commands/Jump to Included File.tmCommand +++ b/Commands/Jump to Included File.tmCommand @@ -1,11 +1,13 @@ - + beforeRunningCommand nop command - # This command passes the script to Ruby via a heredoc, rather than using a shebang. + #!/bin/bash + +# This command passes the script to Ruby via a heredoc, rather than using a shebang. # The reason for this is so that .textmate_init is sourced, which IMO is the nicest place to set PHP_INCLUDE_PAT # However passing the heredoc axes the document STDIN from TextMate, so here we redirect the original STDIN to # file descriptor 3, to be later read from the Ruby script @@ -39,7 +41,7 @@ ruby18 3>&0 <<-'RUBY' if ENV['PHP_INCLUDE_PATH'] paths = ENV['PHP_INCLUDE_PATH'].split(':') else - paths = ['.'] + paths = [ENV['TM_DIRECTORY']] end paths.each do |path| @@ -55,15 +57,23 @@ RUBY input document + inputFormat + text keyEquivalent @D name Jump to Included File - output - showAsTooltip + outputCaret + afterOutput + outputFormat + text + outputLocation + toolTip scope source.php uuid B3E79B47-40E9-4EF9-BAD9-11FEEE0D238F + version + 2