6 comments (6 comments)0 reactions (0 reactions)0 assignees (0 assignees)Rust42,984 stars (42,984 stars)1,059 forks (1,059 forks)batch import
feature-requesthelp wantedupstream-feature
Description
i wonder if -x and -X could complete the readline like compgen -c on bash. And idk if there is other completion case
Contributor guide
- Tech stack
- rustshell
- Domain
- clideveloper experience
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-2 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- fresh
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- basic shell completion conceptsfamiliarity with fd flagsknowledge of a shell's completion syntax
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 60
- Research direction
- The issue requests that the x and X flags of fd provide command completion similar to bash's compgen c, and asks about other completion cases. Start by examining the existing completion scripts for fd in the repository (likely in contrib/completions or similar). Understand how x and X currently work (they execute commands on found files). Look at how other flags like exec or x are handled in completions. Then study the completion system for one shell (e.g., bash using the fd debug function). The goal is to generate dynamic completion lists, possibly by parsing shell commands. Check if there are any linked PRs or discussions that already propose approaches.