Ed Page
f807acef6d
refactor(complete): Move impl next to type
2024-08-09 14:30:47 -05:00
Ed Page
38816ddb33
fix(complete)!: Clarify Completer is a ShellCompleter
2024-08-09 14:03:02 -05:00
Ed Page
16366d21f1
fix(complete)!: Move Completer into shells
...
It only exists for shell-adaptation, so it feels like it better belongs
there.
2024-08-09 14:00:42 -05:00
Ed Page
261116d4b4
fix(complete)!: Rename CustomCompleter::completions to candidates
...
After thinking on this, I feel like it gives a better sense that the
user doesn't get a say in the completion but they give us the options
and we take care of it.
2024-08-09 13:56:47 -05:00
Ed Page
a4775efca1
refactor(complete): Split up completion code
2024-08-09 13:20:37 -05:00
Ed Page
18c560e52f
style(complete): Make clippy happy
2024-08-09 13:00:22 -05:00
shanmu
2b3fc25361
refactor(complete): Add add_prefix
to CompletionCandidate
2024-08-09 12:58:45 -05:00
Ed Page
d222ae4cb6
chore: Release
2024-08-08 11:09:07 -05:00
Ed Page
a8abcb40c5
docs: Update changelog
2024-08-08 11:08:55 -05:00
shanmu
7fd7b3e40b
feat(clap_complete): Support to complete custom value of argument
2024-08-08 23:47:17 +08:00
shanmu
bbb2e6fdde
test: Add test case for completing custom value of argument
2024-08-08 20:56:51 +08:00
shanmu
999071c46d
fix: Change visible
to hidden
2024-08-08 20:56:31 +08:00
Ed Page
4db9fce3d7
feat(complete): Reexport ValueHint for transition to ArgExt
2024-08-02 10:24:43 -05:00
Ed Page
d18615dfc0
chore: Release
2024-07-31 12:20:00 -05:00
Ed Page
7d0c7bceaf
docs: Update changelog
2024-07-31 12:19:41 -05:00
shannmu
f0bd47506f
feat(clap_complete): Support multi-values of positional argument with num_arg(N)
2024-07-31 20:27:37 +08:00
shanmu
3f2466b2f6
test(clap_complete): Add test case for multi-values of positional argument with num_args(N)
2024-07-31 20:25:57 +08:00
shannmu
75a45e5aa0
feat(clap_complete): Support multiple values after flags in native completions
2024-07-30 18:33:43 +08:00
shannmu
5d8c84b83e
test(clap_complete): Add test case for multi-values comlpetion after flags
2024-07-30 18:32:29 +08:00
Ed Page
9c6ef3e057
refactor: Resolve deprecations
2024-07-26 14:24:08 -05:00
Ed Page
82912c3a51
style: Make clippy happy
2024-07-26 14:24:08 -05:00
Ed Page
349ed304cf
chore: Release
2024-07-25 13:08:28 -05:00
Ed Page
68ed9ff02d
docs: Update changelog
2024-07-25 13:08:20 -05:00
Ed Page
afecaa4f9a
Merge pull request #5576 from shannmu/option_value_new
...
feat(clap_complete): Support `-fbar` and `-f=bar` in native completions
2024-07-25 13:07:24 -05:00
Ed Page
4a00677024
chore: Release
2024-07-25 08:39:13 -05:00
shannmu
36c849b5bb
refactor(clap_complete): Reuse code about shortflag parsing
2024-07-25 14:57:27 +08:00
shanmu
fc479ba625
feat(clap_complete): Add support for -fbar
and -f=bar
completion
2024-07-25 14:49:19 +08:00
shanmu
48a23f5c94
test(clap_complete): Add test cases for -fbar
and -f=bar
completion
2024-07-25 14:49:06 +08:00
Ed Page
5efa52ad45
chore: Release
2024-07-23 10:36:14 -05:00
Ed Page
1857e47e2d
docs: Update changelog
2024-07-23 10:35:20 -05:00
shanmu
f7383f7d6d
feat(clap_complete): Add support --flag bar
and -f bar
completion
2024-07-23 18:18:30 +08:00
shannmu
2f53bb3f90
test(clap_complete): Add test cases for --flag bar
and -f bar
completion
2024-07-23 17:47:05 +08:00
shannmu
932ca1356f
refactor(clap_complete): Replace parameters in complete_arg
with ParseState
2024-07-23 02:43:42 +08:00
shannmu
9220bbdeba
feat(clap_complete): Support hiding possible values
2024-07-19 11:30:36 -05:00
shannmu
4395c31cc5
test(clap_complete): Add test case for hiding possible values
2024-07-19 11:30:36 -05:00
shannmu
d68c91af95
feat(clap_complete): Support hiding subcommands and their aliases
2024-07-19 11:20:16 -05:00
shannmu
db1fbc29b9
test(clap_complete): Add test case for hiding subcommands and their aliases
2024-07-19 11:20:16 -05:00
Ed Page
871005724d
Merge pull request #5583 from shannmu/hidden_flags_and_aliases
...
feat(clap_complete): Support hiding long flags and their long aliases
2024-07-19 11:18:22 -05:00
shannmu
d1e0f6073c
feat(clap_complete): Support hiding long flags and their long aliases
2024-07-19 22:49:35 +08:00
shannmu
903b73bd1c
test(clap_complete): Add test cases for hiding long flags and their long aliases
2024-07-19 22:49:35 +08:00
Ed Page
7f903005b8
Merge pull request #5586 from shannmu/glue_documentation
...
docs: Add document comments how to source dynamic completions
2024-07-19 09:29:32 -05:00
shannmu
43e17f2c2b
docs: Add document comments how to source dynamic completions
2024-07-19 22:04:12 +08:00
shannmu
67e31af334
refactor(clap_complete): Add CompletionCandidate
to replace (OsString, Option<StyledStr>)
2024-07-19 18:29:16 +08:00
shannmu
697b88e28f
feat(clap_complete): Add elvish support for native completion
2024-07-18 13:44:27 +08:00
Ed Page
4a8d6806d9
Merge pull request #5549 from shannmu/hidden_aliases
...
feat(clap_complete): Add support for visible subcommand aliases
2024-07-17 16:20:17 -05:00
shannmu
cef9393c5d
feat(clap_complete): Add zsh support for native completion
2024-07-17 23:29:48 +08:00
shanmu
152b2e8a55
feat(clap_complete): Add support for visible subcommand aliases
2024-07-16 16:26:52 +08:00
shanmu
c41d41cbdc
test(clap_complete): Add test case for visible subcommand aliases
2024-07-16 16:26:02 +08:00
Ed Page
44189f3388
chore: Release
2024-07-10 20:34:37 -05:00
Ed Page
f5e7b7a16a
docs: Update changelog
2024-07-10 20:34:29 -05:00