-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runner为floaterm时出现错误:不允许在弹出窗口中使用 #280
Comments
那你别加 -focus=0 啊 |
倒也是,但感觉不如加个判断条件, |
而且, |
tasks.ini 中可以写 focus 的,看: https://github.com/skywind3000/asynctasks.vim/wiki/Task-Config#specification |
只有基于 quickfix 的任务才支持这几个 autocmd,其他终端类,不支持,你可以自己添加终端相关 autocmd |
原来如此。 |
使用
asynctask.vim
时遇到的问题:自定义
runner: floaterm
的wintype
类型为float
,因此popup
窗口弹出后始终会获得焦点,而get(a:opts, 'focus', 1) == 0
条件仍然为真,导致运行noa wincmd p
命令时会出现错误:不允许在弹出窗口中使用。若
wintye=split
,则运行良好。一点不成熟的小建议:若用
popup
窗口显示任务运行结果,可不必调用内置terminal
,直接用job
运行任务,通过回调函数将运行结果显示到popup
窗口中,可避免窗口焦点无法切换的问题。The text was updated successfully, but these errors were encountered: