Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks.ini里 pos=xxx 有效 但AsyncTask -pos=xxx 不生效 #107

Open
hleft opened this issue Jun 1, 2023 · 2 comments
Open

tasks.ini里 pos=xxx 有效 但AsyncTask -pos=xxx 不生效 #107

hleft opened this issue Jun 1, 2023 · 2 comments

Comments

@hleft
Copy link

hleft commented Jun 1, 2023

使用AsyncRun -pos=xxx 有效

在task.ini里配置pos=xxx, 然后AsyncTask 使用了这个pos=xxx

但AsyncTask -pos=xxx 时-pos不生效

希望命令行-pos也有效

@skywind3000
Copy link
Owner

skywind3000 commented Jun 2, 2023

AsyncTask 只接受任务名,不接受参数,多个限制其实是好事,统一化,可以
方便的由 fuzzy finder 取得任务列表,然后按任务名选择运行即可,
搞个可以自由变来变去的参数,你觉得灵活是没错,但太灵活了,就没标准,没法在很多地方协同。
既然 AsyncRun 有彻底的灵活性,AsyncTask 就是将它标准化。

你可以设置多个任务,对应不同 pos 就行了呗。

@hleft
Copy link
Author

hleft commented Jun 2, 2023

@skywind3000

确实可以 但只为了修改pos复制一遍感觉比较麻烦 不知是否有更简单的办法 比如下面的内容

[file-run-external:debug]
command:c,cpp      = $(VIM:run-file)
command:sh         = sh "$(VIM_FILENAME)"
command:lua        = lua "$(VIM_FILENAME)"
command:perl       = perl "$(VIM_FILENAME)"
command:ruby       = ruby "$(VIM_FILENAME)"
command:python     = python "$(VIM_FILENAME)"
command:javascript = node "$(VIM_FILENAME)"
command:go         = go run "$(VIM_FILENAME)"
cwd=$(VIM_ROOT)
output=terminal
pos=alacritty_left

[file-run-external_right:debug]
command:c,cpp      = $(VIM:run-file)
command:sh         = sh "$(VIM_FILENAME)"
command:lua        = lua "$(VIM_FILENAME)"
command:perl       = perl "$(VIM_FILENAME)"
command:ruby       = ruby "$(VIM_FILENAME)"
command:python     = python "$(VIM_FILENAME)"
command:javascript = node "$(VIM_FILENAME)"
command:go         = go run "$(VIM_FILENAME)"
cwd=$(VIM_ROOT)
output=terminal
pos=alacritty_right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants