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

completion for path should trigger for relative paths #6001

Closed
chbiel opened this issue Jul 22, 2019 · 1 comment
Closed

completion for path should trigger for relative paths #6001

chbiel opened this issue Jul 22, 2019 · 1 comment

Comments

@chbiel
Copy link

chbiel commented Jul 22, 2019

fish version: 3.0.2
Terminal: xterm-256color
Ubuntu 19

Hi,
I currently try to get more familiar with fish completions. My goal to achieve:
I have a bash script /home/auser/myscript that can take arguments and options like ./myscript dosomething -s or ./myscript dosomethingelse

I would like to create fish autocompletions for that script.

I assumed that complete -p /home/auser/myscript -f -a 'dosomething dosomethingelse' -d "Some comment" should do this but I do not get autocomplete options when typing ./myscript <TAB> or /home/auser/myscript <TAB>.

Do I missunderstand something here?

Thanks in advance for your help.

@faho
Copy link
Member

faho commented Jul 22, 2019

I assumed that complete -p /home/auser/myscript -f -a 'dosomething dosomethingelse' -d "Some comment" should do this but I do not get autocomplete options when typing ./myscript or /home/auser/myscript .

This works for me with the full path (or via $PATH, if it's in), but not the relative ./.

So it seems we don't resolve the path here. We should.

@faho faho changed the title Question: TAB-complete for shell scripts completion for path should trigger for relative paths Jul 22, 2019
@faho faho added this to the fish 3.1.0 milestone Jul 22, 2019
@zanchey zanchey modified the milestones: fish 3.1.0, fish 3.2.0 Aug 14, 2019
@zanchey zanchey modified the milestones: fish 3.2.0, fish-future Oct 6, 2020
@zanchey zanchey linked a pull request May 16, 2021 that will close this issue
3 tasks
@krobelus krobelus modified the milestones: fish-future, fish 3.3.0 May 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants