asyncrun.vim icon indicating copy to clipboard operation
asyncrun.vim copied to clipboard

enhancement: let g:asyncrun_status contain command called by AsyncRun

Open Konfekt opened this issue 7 years ago • 5 comments

The status line indicator g:asyncrun_status could be more expressive if it contained the command called, for example

running grep

if AsyncRun grep was called.

Konfekt avatar Apr 16 '18 11:04 Konfekt

Some people just need a short status indicator, what about a new variable to represent last command ?

skywind3000 avatar Apr 16 '18 11:04 skywind3000

Yeah, that perfectly solves it.

Konfekt avatar Apr 16 '18 11:04 Konfekt

check out latest version, its name is g:asyncrun_info

skywind3000 avatar Apr 16 '18 13:04 skywind3000

Some thoughts:

  • In case of -program=make -auto=make, it shows -program=make -auto=make. More informative would be simple make. Similarly for -program=grep.
  • Perhaps listing the parameters is not necessary?! At least for the statusline, that is.
  • The feature seems yet undocumented.

Konfekt avatar Apr 16 '18 15:04 Konfekt

As a general observation:

The solution -program=make/grep to call make/grep is incoherent with all other commands. You should think about adding a command AsyncMake/Grep and using &make/grepprg instead, as proposed in https://github.com/skywind3000/asyncrun.vim/issues/96 .

Konfekt avatar Apr 16 '18 16:04 Konfekt