skywind3000 / asyncrun.vim

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
https://www.vim.org/scripts/script.php?script_id=5431
MIT License
1.84k stars 109 forks source link

should be able to use "%" like all other normal vim commands. #264

Closed leoatchina closed 1 year ago

leoatchina commented 1 year ago

After updated to the latest Asyncrun.vim, I found it would cause error when I use % as current file, so I have to update my config, you can see my commit here and the screenshot after https://github.com/leoatchina/leovim/commit/3fe350eb4f4bc9a8e6995bf6f47d0bff39a1a0b2#diff-619016acddd84d635046317ed3b5175f1f5b03994134bdff9ee336ae838d0668L88 image

In other way, if I want to handly type in :AsyncRun commands to run current file, it is more time costing to type in VIM_FILEPATH than %

wookayin commented 1 year ago

Which version were you using previously? I think the $(VIM_FILEPATH) hassles have been there for a while, like MANY years.

https://github.com/skywind3000/asyncrun.vim/wiki/FAQ#macro--is-expanded-incorrectly-on-windows-if-the-filename-contains-spaces-

I'm supportive of this -- we should be able to use "%" like all other normal vim commands.

skywind3000 commented 1 year ago

fixed: https://github.com/skywind3000/asyncrun.vim/releases/tag/2.10.9

leoatchina commented 1 year ago

fixed, thank you !

wookayin commented 1 year ago

Hmm I wrote #261, sorry, but I didn't know file and shellcmd have different impacts on "%". Actually relying on the "file" completion behavior to deal with % is actually a weird and clumsy hack. Let me try a better alternative that would also make % useful.