vim-quickrun icon indicating copy to clipboard operation
vim-quickrun copied to clipboard

Extended sweep

Open oblitum opened this issue 8 years ago • 0 comments

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?

oblitum avatar Jan 27 '17 01:01 oblitum