Comments (7)
那你别加 -focus=0 啊
from asyncrun.vim.
那你别加 -focus=0 啊
倒也是,但感觉不如加个判断条件,pos=floaterm
时,强制 focus=1
。
原本应该在另一个仓库asynctask
下提问的,不过发现这边没法删除issue也就算了。主要是 task.ini
文件里并未提供 focus
选项,每次想切换 pos
的时候,还要额外修改 vimrc
里的配置,甚是麻烦。
from asyncrun.vim.
而且,pos=floaterm
时,wintype=float
是写死了的,vimrc
和task.ini
配置中均未提供自定义选项。因此,在插件里做条件判断if get(a:opts, 'focus', 1)==0
来提供自动关闭结果窗口的功能,根本不起作用。至少在vim
下是这样,neovim
不太熟悉,不敢说。
from asyncrun.vim.
tasks.ini 中可以写 focus 的,看:
https://github.com/skywind3000/asynctasks.vim/wiki/Task-Config#specification
from asyncrun.vim.
看来是我没发现。
但好像发现一个新问题:没有匹配的自动命令:User AsyncRunInit
。
因为用terminal
输出时,貌似不能配置 CursorMoved
事件发生时自动关闭结果窗口,而用floaterm
的话,得进插件里改动floaterm.vim
,将wintype=float
改为wintype=split
。所以想自己写几个函数配合 autocmd
来实现,避免改动插件源码。结果搞了半天,似乎 AsyncRunPre
和 AsyncRunStop
被移除了?
from asyncrun.vim.
只有基于 quickfix 的任务才支持这几个 autocmd,其他终端类,不支持,你可以自己添加终端相关 autocmd
from asyncrun.vim.
只有基于 quickfix 的任务才支持这几个 autocmd,其他终端类,不支持,你可以自己添加终端相关 autocmd
原来如此。
from asyncrun.vim.
Related Issues (20)
- -post function calling fails if function has character # in name HOT 5
- E117: Unknown function: asyncrun#run from .vimrc, but call asyncrun#run works fine after vim starts HOT 6
- Feature request: add an autocmd when project rooted. HOT 1
- Any way to auto-scroll when using term with no focus? HOT 6
- Job queues HOT 2
- AsyncStop does not work when I use it to kill a endless loop HOT 2
- unknown bug (duplicate output maybe) HOT 1
- floaterm: allow to set "autoclose"?
- Can this plugin run code in docker container and get the result in quickfix list? HOT 2
- no way to stop the job when running with -pos=hide
- How to run python scripts with other python interpreter? HOT 1
- 用quickui显示 结束关闭后buffer也不会消除, 新开也不会重用该buffer HOT 5
- Document option -append
- [nvim] Changing shell options on windows breaks AsyncRun HOT 3
- AsyncRun with -pos=tmux fails to execute and pastes into buffer instead
- -close 不work。。。 HOT 7
- E377: Invalid %- in format string when updating errorformat in init.lua HOT 1
- quickfix not syntax highlighted and cannot jump HOT 1
- E518: Unknown option: \ %{exists('w:quickfix_title')? HOT 2
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 asyncrun.vim.