You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ Remember to open vim's quickfix window by `:copen` (or setting `g:asyncrun_open
50
50
-[Project Root](#project-root)
51
51
-[Running modes](#running-modes)
52
52
-[Internal Terminal](#internal-terminal)
53
+
-[Terminal Name](#terminal-name)
53
54
-[Quickfix window](#quickfix-window)
54
55
-[Range support](#range-support)
55
56
-[Customize Runner](#customize-runner)
@@ -282,6 +283,7 @@ AsyncRun is capable to run commands in Vim/NeoVim's internal terminal with the `
282
283
-`-pos=bottom`: open the terminal below the current window.
283
284
-`-pos=left`: open the terminal on the left side.
284
285
-`-pos=right`: open the terminal on the right side.
286
+
-`-pos=hide`: don't open a window, run in background.
285
287
-`-pos=external`: use an external terminal (windows only).
286
288
287
289
Examples:
@@ -296,6 +298,15 @@ Examples:
296
298
297
299
When using a split (`-pos` is one of `top`, `bottom`, `left` and `right`), AsyncRun will firstly reuse a finished previous terminal window if it exists, if not, AsyncRun will create a new terminal window in given position.
298
300
301
+
### Terminal Name
302
+
303
+
There can be many commands running in the internal terminal, you can specify a name for each of them and receive it in `g:asyncrun_name`:
304
+
305
+
```VimL
306
+
:AsyncRun -mode=term -pos=hide -name=123 -post=echo\ g:asyncrun_name ls -la
307
+
```
308
+
309
+
When this process finished, script defined in `-post` will be executed and your command name will display by `echo`. Another variable `g:asyncrun_code` stores exit code.
299
310
300
311
### Quickfix window
301
312
@@ -422,6 +433,7 @@ See: [Cooperate with famous plugins](https://github.com/skywind3000/asyncrun.vim
422
433
423
434
## History
424
435
436
+
- 2.6.0 (2020-03-07): `-post` can be used in terminal mode.
- 2.5.3 (2020-03-02): new `-silent` option to prevent open quickfix, add [command modifier](https://github.com/skywind3000/asyncrun.vim/wiki/Command-Modifier).
Copy file name to clipboardExpand all lines: doc/asyncrun.md
+11-69Lines changed: 11 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,7 @@ AsyncRun is capable to run commands in Vim/NeoVim's internal terminal with the `
260
260
-`-pos=bottom`: open the terminal below the current window.
261
261
-`-pos=left`: open the terminal on the left side.
262
262
-`-pos=right`: open the terminal on the right side.
263
+
-`-pos=hide`: don't open a window, run in background.
263
264
-`-pos=external`: use an external terminal (windows only).
264
265
265
266
Examples:
@@ -274,6 +275,16 @@ Examples:
274
275
275
276
When using a split (`-pos` is one of `top`, `bottom`, `left` and `right`), AsyncRun will firstly reuse a finished previous terminal window if it exists, if not, AsyncRun will create a new terminal window in given position.
276
277
278
+
### Terminal Name
279
+
280
+
There can be many commands running in the internal terminal, you can specify a name for each of them and receive it in `g:asyncrun_name`:
281
+
282
+
```VimL
283
+
:AsyncRun -mode=term -pos=hide -name=123 -post=echo\ g:asyncrun_name ls -la
284
+
```
285
+
286
+
When this process finished, script defined in `-post` will be executed and your command name will display by `echo`. Another variable `g:asyncrun_code` stores exit code.
287
+
277
288
278
289
### Quickfix window
279
290
@@ -397,75 +408,6 @@ Don't forget to read the [Frequently Asked Questions](https://github.com/skywind
397
408
398
409
See: [Cooperate with famous plugins](https://github.com/skywind3000/asyncrun.vim/wiki/Cooperate-with-famous-plugins)
399
410
400
-
## History
401
-
402
-
- 2.5.3 (2020-03-02): new `-silent` option to prevent open quickfix, add [command modifier](https://github.com/skywind3000/asyncrun.vim/wiki/Command-Modifier).
- 2.4.8 (2020-02-21): run with `:execute` if command is starting with colon.
405
-
- 2.4.7 (2020-02-21): new customizable runners by `g:asyncrun_runner`, see [customize runner](https://github.com/skywind3000/asyncrun.vim/wiki/Customize-Runner).
406
-
- 2.4.0 (2020-02-10): fixed internal terminal issue in msys.
407
-
- 2.3.0 (2020-02-10): new mode aliases, minor issue fix.
408
-
- 2.2.9 (2020-02-10): new terminal mode options: `-safe=1`, `-listed=0` and `-reuse`.
409
-
- 2.2.6 (2020-02-06): new: parameter `-hidden` when using `-mode=term` to set `bufhidden` to `hidden`.
410
-
- 2.2.5 (2020-02-05): more safe to start a terminal.
411
-
- 2.2.4 (2020-02-05): exit when starting terminal failed in current window with `-pos=curwin`.
412
-
- 2.2.3 (2020-02-05): new `-program=wsl` to run command in wsl (windows 10 only).
413
-
- 2.2.2 (2020-02-05): new `-pos=curwin` to open terminal in current window.
414
-
- 2.2.1 (2020-01-20): set noreletivenumber for terminal window.
415
-
- 2.2.0 (2020-01-18): new `-focus=0` option for `-mode=term` to prevent focus change.
416
-
- 2.1.9 (2020-01-12): polish `-mode=term`, omit `number` and `signcolunm` in terminal.
417
-
- 2.1.8 (2020-01-11): new options `errorformat` in `asyncrun#run(...)`.
418
-
- 2.1.4 (2020-01-09): correct command encoding on windows and fixed minor issues.
419
-
- 2.1.0 (2020-01-09): new mode `-mode=term` to run command in a reusable terminal window.
420
-
- 2.0.8 (2019-04-28): handle `tcd` (introduced in 8.1.1218). use grepformat when `-program=grep`.
421
-
- 2.0.7 (2019-01-27): restore `g:asyncrun_stdin` because rg will break if stdin is pipe.
422
-
- 2.0.6 (2019-01-26): more adaptive to handle stdin and remove 'g:asyncrun_stdin'
423
-
- 2.0.5 (2019-01-14): enable stdin by default on windows (fix cmake stdin warning on windows).
424
-
- 2.0.4 (2019-01-13): new option `g:asyncrun_stdin`, set to 1 to enable stdin .
425
-
- 2.0.3 (2019-01-04): new macro `$VIM_PATHNOEXT` (by @PietroPate)
426
-
- 2.0.2 (2018-12-25): new `-strip` and `-append` option to control quickfix (by @bennyyip)
427
-
- 2.0.1 (2018-04-29): new option `g:asyncrun_save` to save files.
- 1.3.27 (2018-04-17): AsyncRun now supports range, try: `:%AsyncRun cat`
430
-
- 1.3.26 (2018-04-16): new option `g:asyncrun_wrapper` to enable setup a command prefix
431
-
- 1.3.25 (2018-04-16): handle makeprg/grepprg correctly, accept `%` and `$*` macros. close [#96](https://github.com/skywind3000/asyncrun.vim/issues/96)[#84](https://github.com/skywind3000/asyncrun.vim/issues/84) and [#35](https://github.com/skywind3000/asyncrun.vim/issues/35)
432
-
- 1.3.24 (2018-04-13): remove trailing ^M on windows.
433
-
- 1.3.23 (2018-04-03): back compatible to vim 7.3, can fall back to mode 1 in old vim.
434
-
- 1.3.22 (2018-03-11): new option `g:asyncrun_open` to open quickfix window automatically at given height.
435
-
- 1.3.21 (2018-03-02): fixed: float point reltime issues
0 commit comments