diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-29 13:25:08 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-29 13:25:08 +0800 |
| commit | ebcd0d1edc4434364b7b4027dd4d4f277e62d989 (patch) | |
| tree | 4020e2d2eba285fbe210216bdd0439c68c4b7573 /CHANGELOG.md | |
| parent | 2234df5cc195c4d6734d10ed6b4d08d5497b4bf7 (diff) | |
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3130abc..1cf0c80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -142,6 +142,14 @@ None 7. **[`core`]** **[`comp`]** Added `Suggest::combine(self, other: impl Into<Suggest>) -> Self` method that merges two `Suggest` values. If both are `Suggest::Suggest`, their inner `BTreeSet`s are merged (all items from `other` are added into `self`). Otherwise, the first `Suggest::Suggest` (or `FileCompletion`) is returned unchanged, and the other value is discarded. This enables ergonomic aggregation of completion suggestions from multiple sources. +8. **[`picker_comp`]** Added `mingling::picker_comp` module behind `cfg(all(feature = "picker", feature = "comp"))` with a `PickerArgSuggest` trait and its implementation for `&PickerArg<'a, T>`. The trait provides: + + - **`into_suggest(self)`** — Converts the picker argument's known flags into a `Suggest` collection of `SuggestItem::Simple` entries. + - **`into_suggest_with_desc(self, description)`** — Same as `into_suggest` but wraps each flag in `SuggestItem::WithDescription`. + - **`into_suggest_raw(self, description: Option<&String>)`** — The core method; builds the list of possible flags from `arg_picker::parselib::build_possible_flags` and inserts each into the `Suggest` set, optionally carrying a description. + + This bridges the `picker` and `comp` (completion) subsystems, allowing picker arguments to be reused as completion candidates. + #### **BREAKING CHANGES** (API CHANGES): None |
