-
Notifications
You must be signed in to change notification settings - Fork 116
Open
@spiedeman
Description
使用 asynctask.vim 时遇到的问题:
自定义 runner: floaterm 的 wintype 类型为 float,因此 popup 窗口弹出后始终会获得焦点,而
get(a:opts, 'focus', 1) == 0 条件仍然为真,导致运行 noa wincmd p 命令时会出现错误:不允许在弹出窗口中使用。
若 wintye=split,则运行良好。
一点不成熟的小建议:若用 popup 窗口显示任务运行结果,可不必调用内置 terminal,直接用 job 运行任务,通过回调函数将运行结果显示到 popup 窗口中,可避免窗口焦点无法切换的问题。
Metadata
Metadata
Assignees
Labels
No labels