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

Auto-completion for fish shell #163

Open
1 of 5 tasks
athityakumar opened this issue Nov 28, 2017 · 5 comments · May be fixed by #179
Open
1 of 5 tasks

Auto-completion for fish shell #163

athityakumar opened this issue Nov 28, 2017 · 5 comments · May be fixed by #179

Comments

@athityakumar
Copy link
Owner

Description

The auto-completion for flags and paths can be provided for the fish shell via the getopt plugin.

  • Relevant Issues : Include Zsh completion file in the gem #160
  • Relevant PRs : (none)
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation
@dkowis
Copy link

dkowis commented Jan 19, 2018

https://fishshell.com/docs/current/commands.html#complete

This is probably a better idea than using the getopt plugin? That way no extra plugin has to be installed, I think.

avdv added a commit to avdv/colorls that referenced this issue Jan 24, 2018
@avdv avdv linked a pull request Jan 24, 2018 that will close this issue
5 tasks
@SpaceWhite
Copy link

+1 for this feature

@adcpe
Copy link

adcpe commented Feb 9, 2023

This issue is interesting to me. I agree that adding completions to Fish natively would be better than adding them through an external plugin.

To do that we have to add this feature to Fish directly. I see PR 179 has a template of what would be added. Is that still good or does it need to be modified to be added to Fish?

@dkowis
Copy link

dkowis commented Feb 9, 2023

I don't think it needs to be added directly to fish. I think you just need to provide the completions file to be loaded.

https://fishshell.com/docs/current/completions.html#completion-own

It's been a long long time since I looked at this tho, heh

@adcpe
Copy link

adcpe commented Feb 9, 2023

It doesn't need to be added Fish, but it would be the best way because it means the user doesn't have to make any effort.

The other way would be add a command to colorls that copies the completions to $HOME/.config/fish/completions/.

Any of the two seem cleaner than adding an external plugin like getopt, as suggested.

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

Successfully merging a pull request may close this issue.

4 participants