Fish-shell autocompletion includes filenames - #174
Merged
Conversation
Updating the function FISH_AUTOCOMPLETE_SCRIPT to not include files in Fish-Shell's autocompletion, making it easier to swap roles as it's only accountnames.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fish-shell autocompletion works marvelously, though there is one slight annoyance and a rather easy fix.
The file /home/$USER/.config/fish/completions/awsume.fish contains the following:
#Auto-Complete function for AWSume
complete --command awsume --arguments '(awsume-autocomplete)'
This however also means that when you use tab completion, you'll also include the CWD's files. Naturally, you cannot awsume to the files 😁
An easy fix would be to add the -f argument, not allowing files:
As per:
-f or --no-files says that this completion may not be followed by a filename.
Source:
https://fishshell.com/docs/current/cmds/complete.html
Related to #173