shouldn't --completion for zsh also complete paths?
未關閉
- 主要語言
- Python
- 星號
- 28.2k
- 分支
- 1.5k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi,
I was struggling to make `-- --completion` work with both my arguments and paths. For example I have a "--path" argument and I would like to autocomplete files paths instead of treating it as a flag.
The workaround I found was to do `sed 's/compgen -W/compgen -f -W/g'`
Is there something I'm missing or should I make a PR to add this '-f' by default?
貢獻指南
研究方向
首先定位 Python Fire 的 `--completion` 輸出實作,並檢查它如何產生 zsh 或 shell 補全指令。重現 `--path` 範例,將產生的輸出與 `compgen -f -W` 這個替代方案進行比較,並確認路徑補全能正常運作而不會破壞 flag 補全。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- bash, python, zsh
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100