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

Please add bash-completion #114

Open
StefanLobbenmeier opened this issue Oct 1, 2020 · 4 comments
Open

Please add bash-completion #114

StefanLobbenmeier opened this issue Oct 1, 2020 · 4 comments

Comments

@StefanLobbenmeier
Copy link

Would be nice if we could tab to complete commands and names of games

@derrod
Copy link
Owner

derrod commented Oct 1, 2020

Bash completion for commands would be possible, I don't think it would work for games since the bash completion file would not contain that information or would have to be regenerated every time there is new game information available.

@StefanLobbenmeier
Copy link
Author

Hmm looking at the bash-completion of docker / pacman it should be possible to also use the bash-completion for dynamic content like names of containers, packages, or games on epic games. I have never created such a completion script before though, so I don't know how these are doing it.

@theAkito
Copy link

theAkito commented Oct 2, 2020

would have to be regenerated every time there is new game information available.

This shouldn't be an issue, at all. Generations could be triggered by hooks on installation and removal of games.


I've researched a bit on Bash Completion and it seems like it doesn't need to be generated, at all. The completion just needs to execute a function which looks in the game directory and lists its contents. This should be easily implemented.

https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html#Programmable-Completion

@legendofmiracles
Copy link

#118

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