Skip to content

runner为floaterm时出现错误:不允许在弹出窗口中使用 #280

Description

@spiedeman

使用 asynctask.vim 时遇到的问题:
自定义 runner: floatermwintype 类型为 float,因此 popup 窗口弹出后始终会获得焦点,而
get(a:opts, 'focus', 1) == 0 条件仍然为真,导致运行 noa wincmd p 命令时会出现错误:不允许在弹出窗口中使用。
wintye=split,则运行良好。

一点不成熟的小建议:若用 popup 窗口显示任务运行结果,可不必调用内置 terminal,直接用 job 运行任务,通过回调函数将运行结果显示到 popup 窗口中,可避免窗口焦点无法切换的问题。

截图_2023-11-24_23-09-38

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions