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

Function load by "source hoge.zsh" is not completion. #8

Open
ghost opened this issue Sep 28, 2017 · 3 comments
Open

Function load by "source hoge.zsh" is not completion. #8

ghost opened this issue Sep 28, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 28, 2017

I’d like to ask you to add completion "function loaded by source".

開いているファイルにある関数を補完されますが、
source.によって読み込まれた関数は補完されません。
なので、sourceなどで読み込んだ関数も補完できるようにしてほしいです。
(Issue立てるのは初めてなので、何か問題があれば教えてください)

@Shougo
Copy link
Collaborator

Shougo commented Sep 28, 2017

おそらく、そのような高級な機能は実装されていません。

capture.zsh を拡張する必要があると思います。

https://github.com/zchee/deoplete-zsh/blob/master/bin/capture.zsh

@zchee
Copy link
Member

zchee commented Sep 28, 2017

@Shougo twitterで拾ってissue投げてもらった感じです。拡張する方向で思っていたのですがいかがでしょう?

@Shougo
Copy link
Collaborator

Shougo commented Sep 28, 2017

なるほど。拡張すること自体は問題ありません。
(誰が拡張するのかという話はありそう)

ソースコード中の source をパースして、zsh にロードさせる必要があると思います。

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

No branches or pull requests

2 participants