Comments (3)
我也遇到了这个问题,设置let g:asynctasks_term_reuse = 1
后解决。
from asynctasks.vim.
默认的内置终端必须在任务结束的情况下才能复用,如果老任务没有结束,则会创建新的窗口。
可以考虑使用 vim-terminal-help 提供的交互式终端,每次运行的时候只是发送命令过去,不会创建新的终端窗口,搭配 asyncrun.extra,可以让 asyncrun/asynctasks 具备调用 terminal-help 的能力,然后设置:
let g:asynctasks_term_pos = 'termhelp'
你基本就得到了一个和 vscode 一样的可复用终端了:
from asynctasks.vim.
我好像理解错了,asynctasks_term_pos在设置为top
、bottom
、left
或right
时(且设置output=terminal
)终端窗口复用是默认选项嘛?如果不是的话此章节的说明可能会有些歧义(从章节开始至如下引用间未提及需要声明asynctasks_term_reuse=1
才会开启终端复用)。
终端窗口会复用,如果上一个任务结束了,再次运行时不会新建终端窗口,会先尝试复用老的已结束的终端窗口,找不到才会新建。
BTW: vim-terminal-help很方便,我改为使用vim-terminal-help了。
from asynctasks.vim.
Related Issues (20)
- Multiline command HOT 2
- Macro variables referenced in the [+] section are not expanded when running tasks right in shell HOT 2
- 能支持在command中运行vim命令吗? HOT 1
- Readme和wiki不一致 HOT 2
- 设置python trace back 的errorformat无效,并且python默认的自定义compiler失效 HOT 3
- How to check if the task was successful? HOT 5
- Run watch mode tasks?
- tasks.ini里 pos=xxx 有效 但AsyncTask -pos=xxx 不生效 HOT 2
- 命令中有大括号的参数不生效 HOT 1
- 任务具有生命周期次序,或者可以调用其他任务 HOT 1
- Expose last_task as global variable HOT 3
- 建议考虑兼容 vscode 的 task.json HOT 1
- hi, the default shell(dash) of Ubuntu does not support `(` in expressions. HOT 6
- [Feature] Command Line 中使用asynctask设置的default值不能修改也不显示。
- [feature] 添加用户自定义宏支持 HOT 1
- [Suggestion] fzf-lua example for wiki HOT 5
- toggleterm终端没法复用 HOT 6
- 诸如 VIM_FILEPATH 在 neovim 下的支持问题 HOT 3
- 请教 interactive shell 问题 HOT 1
- 不给asyncrun_rootmarks设置个默认值吗? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asynctasks.vim.