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 - 20210211 - v2.8.3

Published by skywind3000 over 3 years ago

  • better path handling.
asyncrun.vim - 20210203 - v2.8.2

Published by skywind3000 over 3 years ago

  • new option -close for -mode=term to close the terminal automatically when terminal process finished.
  • new option -pos=TAB for -mode=term to open a terminal in a new tab residing on the left side.
  • fixed: minor path related issues.
  • improve compatibility on windows.

try:

:AsyncRun -mode=term -pos=TAB -close  lazygit

When you are using -pos=TAB, lazygit will run in a new tab on the left side of current tabpage. when it finished, you can return to your previous tabpage directly. More convenience than -pos=tab when you want to return to previous tab.

asyncrun.vim - 20210128 - v2.7.9

Published by skywind3000 over 3 years ago

  • new: when "-mode=wait" is provided, use "system()" to run your command.
  • new: add autocmd AsyncRunPre, AsyncRunStart, AsyncRunStop for "-mode=wait"
asyncrun.vim - 20210112 - v2.7.8

Published by skywind3000 almost 4 years ago

  • expose s:ScriptWrite interface to asyncrun#script_write.
asyncrun.vim - 20201229 - v2.7.7

Published by skywind3000 almost 4 years ago

asyncrun.vim - 20200409 - v2.7.5

Published by skywind3000 over 4 years ago

  • project root can be overshadowed by b:asyncrun_root, t:asyncrun_root and g:asyncrun_root:

eg:

let g:asyncrun_root = '/usr/local'

and

:AsyncRun -cwd=<root> pwd

output:

/usr/local
asyncrun.vim - 20200408 - v2.7.3

Published by skywind3000 over 4 years ago

  • new macro $(VIM_PWD) or <pwd> for vim's current working directory (which :pwd returns).
  • difference between $(VIM_PWD) and $(VIM_CWD) is that $(VIM_CWD) will change if -cwd=xxx is given.

example:

:cd /usr/share

than:

:AsyncRun -cwd=/usr/include echo from $(VIM_PWD) to $(VIM_CWD)

output:

from /usr/share to /usr/include
asyncrun.vim - 20200326 - v2.7.1

Published by skywind3000 over 4 years ago

  • keep compatible with vim 7.3, and provide limited functionality.
asyncrun.vim - 20200325 - v2.7.0

Published by skywind3000 over 4 years ago

  • windows: follow shellslash option.
asyncrun.vim - 20200323 - v2.6.9

Published by skywind3000 over 4 years ago

  • improve project root detection.
asyncrun.vim - 20200322 - v2.6.8

Published by skywind3000 over 4 years ago

  • change: g:asyncrun_rootmarks accepts wildcards like "*" or "?".
  • change: -reuse=0 can be used in split terminals.
asyncrun.vim - 20200312 - v2.6.7

Published by skywind3000 over 4 years ago

  • fixed: windows - exit code is always zero.
asyncrun.vim - 20200311 - v2.6.6

Published by skywind3000 over 4 years ago

  • new: -pos accepts a new uppercase TAB to open internal terminal on the left of current tab.
asyncrun.vim - 20200309 - v2.6.5

Published by skywind3000 over 4 years ago

  • minor issues fixed.
asyncrun.vim - 20200308 - v2.6.2

Published by skywind3000 over 4 years ago

  • change: runner's argument changed from string to dictionary.
asyncrun.vim - 20200307 - v2.6.1

Published by skywind3000 over 4 years ago

  • change: clear g:asyncrun_name in normal quickfix jobs.
asyncrun.vim - 20200307 - v2.6.0

Published by skywind3000 over 4 years ago

  • change: -post=xxx is available in terminal mode
  • new: -pos=hide in terminal mode
  • new: -name=abc to specify a name for terminal task
  • new: g:asyncrun_name to get terminal task name.

example:

:AsyncRun -mode=term -pos=hide -name=abc -post=echo\ g:asyncrun_name   ls -la

When it finished, script in -post=? will be executed and the name abc will display, while g:asyncrun_code stores the exit code.

asyncrun.vim - 20200307 - v2.5.5

Published by skywind3000 over 4 years ago

  • change: -mode=term -pos=tab obeys -focus=0 now, try:
:AsyncRun -mode=term -pos=tab -focus=0    ls -la
asyncrun.vim - 20200306 - v2.5.4

Published by skywind3000 over 4 years ago

  • windows: fixed, passing arguments in the most correct way on windows.
  • minor issues.
asyncrun.vim - 20200302 - v2.5.3

Published by skywind3000 over 4 years ago

  • new option -silent to prevent open quickfix window no matter g:asyncrun_open is set or not.
  • new command modifier can define your own -program=new_modifer.