Skip to content

Extended sweep #151

Description

@oblitum

I'm building a better configuration for OCaml and have reached this:

let g:quickrun_config = {
    \   'ocaml' : {
    \     'command': 'corebuild',
    \     'cmdopt': '-quiet',
    \     'exec': ['%c %o %s:t:r.byte', './%s:t:r.byte %a'],
    \     'tempfile': '%{tempname()}.ml',
    \     'hook/cd/directory': '%S:p:h',
    \     'hook/sweep/files': ['%S:p:h/_build', '%S:p:r.byte'],
    \   }
    \ }
" }}}

The only problem is the hook/sweep/files, it seems only able to delete a file, not a directory, and I need to delete both path/foo.byte and path/_build but path/_build is left untouched. Better yet, it would be better if it was possible to configure a command to run on sweep, for example, I could run corebuild -clean to clean up everything instead of listing files to delete.

Is there a simple way to configure this?

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