[GH-ISSUE #5047] [FR] shell completion #1535

Closed
opened 2026-11-02 15:47:46 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Qiumix on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5047

Originally assigned to: @oskal675-design on GitHub.

Our command-line parsing is done with clap, and adding a completion command to generate shell completion scripts is very easy. With https://crates.io/crates/clap_complete, it only takes a dozen or so lines of code.

In addition, for package manager packaging, such as AUR's horizon-launcher-bin, we can run the compiled horizon once at build time to generate the corresponding completion scripts in advance in the shell completion directory under /usr/share, so that they are loaded automatically.

Originally created by @Qiumix on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5047 Originally assigned to: @oskal675-design on GitHub. Our command-line parsing is done with clap, and adding a completion command to generate shell completion scripts is very easy. With https://crates.io/crates/clap_complete, it only takes a dozen or so lines of code. In addition, for package manager packaging, such as AUR's horizon-launcher-bin, we can run the compiled horizon once at build time to generate the corresponding completion scripts in advance in the shell completion directory under /usr/share, so that they are loaded automatically.
Author
Owner

@oskal675-design commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Launcher shell completions implemented and validated locally; preparing the pull request.

<!-- gh-comment-id:6542218164 --> @oskal675-design commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Launcher shell completions implemented and validated locally; preparing the pull request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1535
No description provided.