asyncrun.vim

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

MIT License

Downloads
138
Stars
1.9K
Committers
22

Bot releases are hidden (Show)

asyncrun.vim - 20200229 - v2.5.0

Published by skywind3000 over 4 years ago

  • purify and refactor, remove useless codes.
  • new command modifier g:asyncrun_program.
  • the -program=xx supports msys, mingw32, mingw64 and cygwin:

Try this on windows:

:let g:asyncrun_msys = 'd:/msys32'
:AsyncRun -program=msys ls -l && echo $(MSYS_CWD)
:AsyncRun -mode=term -program=mingw32 ls -l && echo $(MSYS_ROOT)

The -program=xx can be totally customized now:

:let g:asyncrun_program.display = { opts -> 'echo ' . opts.cmd }
:AsyncRun -program=display ls -la

The origin command ls -la will be modified to echo ls -la in the display modifier.

The msys, mingw32 and wsl are implemented as command modifiers.

asyncrun.vim - 20200221 - v2.4.9

Published by skywind3000 over 4 years ago

  • new: specify customized runner by g:asyncrun_runner, see customize runners.
  • new: run command with :execute if command is starting with a colon :.
  • new: the colon command can be disabled by setting g:asyncrun_strict to non-zero.
asyncrun.vim - 20200218 - v2.4.6

Published by skywind3000 over 4 years ago

new macros for -program=wsl on Windows:

  • $(WSL_FILEPATH)
  • $(WSL_FILENAME)
  • $(WSL_FILEDIR)
  • $(WSL_FILENOEXT)
  • $(WSL_PATHNOEXT)
  • $(WSL_RELDIR)
  • $(WSL_RELNAME)
  • $(WSL_ROOT)
  • $(WSL_CWD)
  • $(WSL_CFILE)
asyncrun.vim - 20200217 - v2.4.5

Published by skywind3000 over 4 years ago

  • fixed: $(VIM_PATHNOTEXT) is not an absolute path, make it absolute.
asyncrun.vim - 20200216 - v2.4.4

Published by skywind3000 over 4 years ago

  • fixed: windows: -mode=term -safe=1 will break when $HOME directory contains spaces.
  • better file extname handling.
  • optimize in terminal mode.
asyncrun.vim - 20200216 - v2.4.3

Published by skywind3000 over 4 years ago

  • fixed neovim/windows: command name containing spaces will break
  • new: $(VIM_PRONAME), $(VIM_DIRNAME), $(VIM_CLINE)
asyncrun.vim - 20200216 - v2.4.2

Published by skywind3000 over 4 years ago

  • new: macro $(VIM_FILETYPE) to represent &filetype.
asyncrun.vim - 20200212 - v2.4.1

Published by skywind3000 over 4 years ago

  • fixed focusing issue in terminal window.
asyncrun.vim - 20200211 - v2.4.0

Published by skywind3000 over 4 years ago

asyncrun.vim - 20200210 - v2.3.0

Published by skywind3000 over 4 years ago

This is the minimal version to support asynctasks.vim.

  • mode alises:

    • -mode=term -pos=vim alias to -mode=bang .
    • -mode=term -pos=quickfix alias to -mode=async -raw=1.
    • -mode=term -pos=os alias to -mode=os
  • minor issues fixed.

asyncrun.vim - 20200210 - v2.2.9

Published by skywind3000 over 4 years ago

new terminal mode options: -safe, -listed=0 and -reuse:

  • -safe=1: use a temporary script to pass arguments, this is the most accurate way for argument passing.
  • -listed=0: set nobuflisted for the terminal buffer.
  • -reuse: when using -mode=term and -pos=tab together, try to use a reusable terminal tab.

All of these are for -mode=term only.

asyncrun.vim - 20200206 - v2.2.6

Published by skywind3000 over 4 years ago

  • new: parameter -hidden when using -mode=term to set bufhidden to hidden
  • improvement: keep alternative window when splitting an terminal window
  • improvement: more safe to start a terminal in a new tab
asyncrun.vim - 20200205 - v2.2.5

Published by skywind3000 over 4 years ago

  • More safe to start a terminal.

  • exit when starting terminal failed with -pos=curwin.

  • new: -program=wsl to run command in wsl (windows 10 only):

      :AsyncRun -program=wsl ls -la
      :AsyncRun -program=wsl -dist=debian ls -la
    
  • new: -pos=curwin to open terminal in current window:

      :AsyncRun -mode=term -pos=curwin {command}
    
asyncrun.vim - 20200120 - v2.2.1

Published by skywind3000 over 4 years ago

  • set noreletivenumber for terminal window when using -mode=term.
asyncrun.vim - 20200118 - v2.2.0

Published by skywind3000 almost 5 years ago

  • AsyncRun -mode=term {command} to open an internal terminal.
  • fixed minor defects.