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

Plugin not found Command-line Autocompletion #311

Open
manaranjoc opened this issue Aug 11, 2020 · 5 comments
Open

Plugin not found Command-line Autocompletion #311

manaranjoc opened this issue Aug 11, 2020 · 5 comments

Comments

@manaranjoc
Copy link

Expected behaviour

No problems loading the autocompletion plugin with oh-my-zsh.

Actual behaviour

The plugin doesn't load with the instructions given in README.md for oh-my-zsh .
I was able to make it work linking the file _tldr located in node_modules/tldr/bin/completion/zsh/_tldr. (is this the correct way?)

output

[oh-my-zsh] plugin 'tldr' not found

Environment

  • Operating system - Ubuntu in WSL2
  • NodeJS - v14.4.0 managed with nvm
@sbrl sbrl added the bug label Aug 11, 2020
@vladimyr
Copy link
Collaborator

vladimyr commented Mar 4, 2021

I was able to make it work linking the file _tldr located in _node_modules/tldr/bin/completion/zsh/tldr. (is this the correct way?)

Actually, this is not a bug per se - it is more like a case of lacking documentation. You are right, node_modules/tldr/ portion of the path is assummed. 🙃

@vladimyr vladimyr removed the bug label Mar 4, 2021
@bl-ue
Copy link
Contributor

bl-ue commented Mar 4, 2021

Needs a PR?

@vladimyr
Copy link
Collaborator

vladimyr commented Mar 4, 2021

If you ask me, needs a better way altogether. The unwritten standard for this kind of thing is to have a completion command with shell name options that outputs the completion code.

@bl-ue
Copy link
Contributor

bl-ue commented Mar 4, 2021

Then maybe I should drop out of this PR 😄

I'm not good with shell completions 😬😬

@vladimyr
Copy link
Collaborator

vladimyr commented Mar 4, 2021

Well, nobody said picking low hanging fruit in the meantime is a bad thing 😉 You are more than welcome to improve docs 😉

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

4 participants