Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended sweep #151

Open
oblitum opened this issue Jan 27, 2017 · 0 comments
Open

Extended sweep #151

oblitum opened this issue Jan 27, 2017 · 0 comments

Comments

@oblitum
Copy link
Contributor

oblitum commented Jan 27, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant