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

Added support for autocomplete in Zsh and clink solving #141 and #190 #197

Closed
wants to merge 1 commit into from

Conversation

waldekmastykarz
Copy link
Member

@waldekmastykarz waldekmastykarz commented Jan 1, 2018

Added support for autocomplete in Zsh and clink solving #141 and #190

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 786b75e on waldekmastykarz:completion-lua into a0b98c7 on SharePoint:dev.

@waldekmastykarz
Copy link
Member Author

Merged manually

@waldekmastykarz waldekmastykarz deleted the completion-lua branch January 3, 2018 18:22
@waldekmastykarz waldekmastykarz changed the title Added support for autocomplete in Zsh and clink solving #142 and #190 Added support for autocomplete in Zsh and clink solving #141 and #190 Jan 3, 2018
@VelinGeorgiev
Copy link
Contributor

FYI: @waldekmastykarz , work like a charm (disclaimer: 'on my machine') :)!

image

cmder
image

@waldekmastykarz
Copy link
Member Author

Excellent!

@waldekmastykarz
Copy link
Member Author

Btw, looking closer at both screenshots @VelinGeorgiev I noticed that you've checked autocomplete in immersive mode (eg. after starting the CLI). What's added, is autocomplete directly in the shell, so in the cmder, you would for example type o365 spo <tab><tab> and cmder would list for you the available spo commands.

@VelinGeorgiev
Copy link
Contributor

@waldekmastykarz, my cmder does not behave as expected:
cmder version status: 171025 preview (ConEmu 171025 [64])

o365 spo <tab><tab> still shows the available folders in the current directory instead of cli commands. I can log more detailed issue and also take a look at the code since I use windows.

@waldekmastykarz
Copy link
Member Author

Have you followed the setup instructions as described in https://sharepoint.github.io/office365-cli/concepts/completion/#clink-cmder?

@VelinGeorgiev
Copy link
Contributor

Not at all. Good hint, thanks for that.Will test it later again.

@VelinGeorgiev
Copy link
Contributor

VelinGeorgiev commented Jan 13, 2018

@waldekmastykarz, couldn't make it work following the instructions.
The following error is present when cmder loads:
C:\cmder/vendor/clink-completions/o365.lua:1011: too many local variables (limit is 200) in main function near '='
image

Could that be lua language restriction itself?
http://lua-users.org/lists/lua-l/2009-06/msg00412.html

@waldekmastykarz
Copy link
Member Author

Hmm, I've seen it working initially, but maybe it changed when we added more commands. If there is indeed a limit of the number of variables you can have in .lua, then we'd have to restructure the file, to do more things in place instead of in separate variables. Since it's all generated, it shouldn't really matter. Thanks for double checking!

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

Successfully merging this pull request may close these issues.

3 participants