Skip to content

Allow a config file to define custom hook scripts #57

@ahw

Description

@ahw

The user likely already has some build framework in place and command line tools for running. VimHooks should allow the option of a per-project config file that maps hook naming patterns to custom commands or scripts.

{
    "js.bufwritepost.vimhook": "make build",
    "js.vimleave.vimhook": "make deploy"
}

Or perhaps this would be more clear:

[{
    "pattern": "*.js",
    "event": "bufwritepost",
    "cmd": "make build"
}, {
    "pattern": "*.es6.js",
    "event": "bufwritepost",
    "cmd": "make compile"
}]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions