Git Product home page Git Product logo

Comments (3)

yolo2h avatar yolo2h commented on May 18, 2024

我也遇到了这个问题,设置let g:asynctasks_term_reuse = 1后解决。

from asynctasks.vim.

skywind3000 avatar skywind3000 commented on May 18, 2024

默认的内置终端必须在任务结束的情况下才能复用,如果老任务没有结束,则会创建新的窗口。

可以考虑使用 vim-terminal-help 提供的交互式终端,每次运行的时候只是发送命令过去,不会创建新的终端窗口,搭配 asyncrun.extra,可以让 asyncrun/asynctasks 具备调用 terminal-help 的能力,然后设置:

let g:asynctasks_term_pos = 'termhelp'

你基本就得到了一个和 vscode 一样的可复用终端了:

from asynctasks.vim.

yolo2h avatar yolo2h commented on May 18, 2024

我好像理解错了,asynctasks_term_pos在设置为topbottomleftright时(且设置output=terminal)终端窗口复用是默认选项嘛?如果不是的话此章节的说明可能会有些歧义(从章节开始至如下引用间未提及需要声明asynctasks_term_reuse=1才会开启终端复用)。

终端窗口会复用,如果上一个任务结束了,再次运行时不会新建终端窗口,会先尝试复用老的已结束的终端窗口,找不到才会新建。

BTW: vim-terminal-help很方便,我改为使用vim-terminal-help了。

from asynctasks.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.