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

hyprctl: add shell completions #3535

Closed
wants to merge 1 commit into from

Conversation

Ordoviz
Copy link
Contributor

@Ordoviz Ordoviz commented Oct 9, 2023

The Bash, Zsh, and fish completions are generated with complgen from an easy-to-read grammar. Since complgen is an obscure new Rust tool, I didn't make it a build dependency. This means you have to manually install it and run ./build_completions.sh in the completions directory when you edit the grammar.

Feel free to reject this if you don't like complgen.

I didn't test the meson build. The changes are mostly stolen from #275.

@Ordoviz Ordoviz force-pushed the hyprctl-completions branch from eed439e to e0b0070 Compare October 9, 2023 15:27
@vaxerski
Copy link
Member

I don't like complgen indeed. Obscure and Rust.

is there no way for a reasonable tool to build those? We could employ them into a CI pipeline.

@Mikilio
Copy link

Mikilio commented Oct 26, 2024

There is carapace.

@kamack38
Copy link

kamack38 commented Feb 2, 2025

Any progress on this?

@Ordoviz
Copy link
Contributor Author

Ordoviz commented Feb 2, 2025

This PR was superseded by #5404 but my completion script is slightly more sophisticated. If you want those extra feature, you need to make a new PR as I don't use Hyprland anymore. Feel free to take inspiration from this PR, though (I release all of its code into public domain).

@Ordoviz Ordoviz closed this Feb 2, 2025
@kamack38
Copy link

kamack38 commented Feb 3, 2025

Does this mean #3909 should be closed?

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

Successfully merging this pull request may close these issues.

4 participants