Skip to content

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

@technosophos

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().

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