Skip to content

Files of form module.something.inc don't work #3

Description

@technosophos

Say I'm editing foo.install.inc and I type h_install. I get something like this:

function hook_foo.install_install() {

}

The Filename() function in snipMate only removes the first "extension". So the basename for foo.install.inc is foo.install.

I fixed this in my fork and issued a pull request. Basically, I declared a new function in plugin/snipMate_drupal.vim that trims off up to two extensions. This function is called DrupalFilename(). I then replaced all instances of Filename() with DrupalFilename().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions