Asyncrun.vim Versions Save

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!

2.12.5

1 month ago
  • set g:asyncrun_mode to 1 during creating a terminal buffer and clear it to 0 after buffer has been created.
  • script triggered by the #TerminalOpen or #TermOpen autocmd can use it to detect if this terminal buffer is created by asyncrun.

2.12.4

2 months ago

new g:asyncrun_rooter hook for root detection:

  • each item in the g:asyncrun_rooter dictionary is a function pointer (or name).
  • each function will be called to detect current buffer's root directory, until find one valid result.
  • returns empty string to skip, see the example
let g:asyncrun_rooter = get(g:, 'asyncrun_rooter', {})
function! g:asyncrun_rooter.mydetect()
    if unable_to_detect
        return ''
    endif
    return '/path/to/root'
endfunc

2.12.3

2 months ago
  • Added handling for fugitive buffers in asyncrun#fullname() function

2.12.2

7 months ago
  • accept AsyncRun :!!command to start gui programs.
  • minor issues fixed.

2.11.23

7 months ago
  • added try/catch for Ex commands (starting with colon), eg. :AsyncRun :echo 123 and display exception if failed.
  • fixed minor issues.

2.11.20

8 months ago
  • new api g:asyncrun#current_root() can return current root directory.

2.11.19

9 months ago
  • new -init=script option to run a init script for terminal task after successfully opening the terminal window:
:AsyncRun -mode=term -pos=right -init=setlocal\ ft=myterminit   bash
  • new -ft=filetype option to set filetype for a terminal buffer:
:AsyncRun -mode=term -pos=right -ft=myterminit   bash

2.11.16

1 year ago
  • Strip message even if process fails

2.11.15

1 year ago
  • new option -runner=xxx can work as an alias to -mode=term -pos=xxx.
  • polish external function calling

2.11.14

1 year ago
  • terminal: accept -scroll=0 option to keep consistency.