First off, this is a great little drush command. I really dig it.

I live in Drupal 6 and Drupal 7 (Drupal 8 shortly), so I wanted to have both sets of completions. The attached patch allows you to add a "--version" option to this command. That will create a completions file like Drupal6.sublime-completions, Drupal7.sublime-completions, etc. It also adds the Drupal core major version number to the end of each function so it is easy to make sure you are completing the correction version.

Let me know your thoughts. A patch is attached.

Thanks!

CommentFileSizeAuthor
sublime_completion-version-number.patch2.29 KBshrop

Comments

tanc’s picture

Hi shrop, thanks for submitting this patch, it could be a good idea. Before I get into it I wanted to let you know I'm working on a ST2 plugin to handle autocompletions on a per project basis which solves the D6/D7 issue. I've submitted it to the ST2 package manager repository and am just waiting for it to be committed. In the meantime you can find it on github: https://github.com/tanc/st2-drupal-autocomplete

shrop’s picture

Status: Closed (won't fix) » Needs review

Good deal! I am going to try your new version. Thanks for getting it in package control also. I use that all the time.

tanc’s picture

Status: Needs review » Closed (won't fix)

Status: Needs review » Closed (won't fix)