Commit graph

82 commits

Author SHA1 Message Date
shanmu
59bf26dd56 feat(clap_complete): Support delimiter values in native completions 2024-08-16 15:54:01 -05:00
shannmu
ccecab394b test(clap_complete): Add test cases for delimiter_values support 2024-08-16 15:54:01 -05:00
Ed Page
de723aaf8a fix(complete)!: Flatten in prep for stabilization 2024-08-16 10:35:07 -05:00
Ed Page
c402ec61ee feat(complete): Env hook for dynamic completions
Fixes #3930
2024-08-12 10:53:24 -05:00
Ed Page
6288e1169d test(complete): Specialize tests 2024-08-12 10:40:41 -05:00
Ed Page
cddbb5689f fix(complete): Correct version check 2024-08-12 08:29:11 -05:00
Ed Page
63740539d3 style: Order fn attributes 2024-08-12 08:26:42 -05:00
Ed Page
f75251f5ae fix(complete)!: Rename shells to command 2024-08-12 08:12:21 -05:00
Ed Page
b94fce3242 fix(complete)!: Put CompleteCommand behind unstable-command
Avoid the cost of the deps when not needed.
2024-08-10 20:41:01 -05:00
Ed Page
d69e0dc777 fix(complete)!: Rename ShwllCompleter to CommandCompleter
This opens space for several completion strategies
2024-08-10 20:24:53 -05:00
Ed Page
64bf287e68 fix(complete)!: Switch --shell to a positional
This matches how I've seen it done elsewhere
and removes extra boilerplate
2024-08-10 19:38:59 -05:00
Ed Page
c9df58bcf7 fix(complete)!: Remove --register
Our focus is on encouraging people to generate this on shell load so its
more "auto-updating" as programs are updated.
Having a flag for saving to a file is counter to that goal.
2024-08-10 19:33:49 -05:00
Ed Page
8cb0e7fdaf test(complete): Normalize snapshot format 2024-08-10 18:37:01 -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
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
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
82912c3a51 style: Make clippy happy 2024-07-26 14:24:08 -05: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
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
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
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
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
Lzu Tao
1c5a625ad0 fix: Fix wrong cfg(linux) 2024-07-05 15:35:01 -05:00
Lzu Tao
7c00ad2e3e test(comlete): Show all fish completions 2024-07-05 15:34:42 -05:00
Ed Page
3689a4c867 test(complete): Fix snapshots 2024-07-05 15:02:08 -05:00
Ed Page
75e2199415 chore: Upgrade snapbox 2024-05-24 10:13:50 -05:00
Ed Page
800d7cb8ad chore: Update from template 2024-05-14 12:27:02 -05:00
Ed Page
fba7c8597b test(complete): Show newline issue 2024-02-16 16:16:36 -06:00
Ed Page
5f9cecb6bd chore: Update snapbox/trycmd 2024-02-14 16:44:57 -06:00
Ed Page
ea77b98da3 test(complete): Make it order independent 2024-02-08 06:19:06 -06:00
sudotac
1edffb8576 fix(complete): Prevent filenames splitting
Fix #5313
2024-02-02 23:31:03 +09:00
sudotac
fe16f24ed8 test(complete): Verify filename splitting 2024-02-02 23:31:03 +09:00
Ed Page
646134a9a9
Merge pull request #5240 from sudotac/improve-bash-completion-with-compopt
Improve bash completion with compopt
2024-01-22 09:44:11 -06:00