Commit graph

64 commits

Author SHA1 Message Date
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
sudotac
13a79804c9 fix(complete): Suppress a useless space completion 2024-01-20 21:29:51 +09:00
sudotac
e25b1abddf feat(complete): Add DirPath support in bash 2024-01-20 21:29:50 +09:00
sudotac
3a222def22 fix(complete): Fix path completion in bash
Fix #5239
2024-01-20 21:29:06 +09:00
sudotac
62a5ace9f1 test(complete): Verify some variants of ValueHint 2024-01-20 21:28:52 +09:00
Sebastian Holmin
6411995641 test(complete): Add custom bin name test 2024-01-19 10:26:26 +01:00
Ed Page
c742b8eb0c chore(complete): Update completest-pty 2024-01-15 14:42:42 -06:00
Ed Page
419f231dad chore: Update completest 2024-01-15 12:21:42 -06:00
Ed Page
017c258be1 fix(complete): Include positionals in subcommands
Fixes #5139
2023-09-25 16:15:02 -05:00
Ed Page
82c93ce024 test(complete): Verify dynamic subcommand positional completion 2023-09-25 16:10:42 -05:00
jporwal05
34291a2b46 fix: (fish-completion) Help for value enum
Resolves #5101

- The completion of value enums now displays accurate help text
- This fix encloses help text in single quotes
- Any text after tab is taken as help text
- Comma in help text is not escaped
- This is because the the help text is now treated as literal
- No variable expansion or command substitution in help text
2023-09-07 17:54:28 +05:30
jporwal05
ca06c321c5 test: (completion) enum value help
- Breaking for fish shell
- Matching the bad output to make the test pass
2023-09-07 17:19:43 +05:30
Roland Fredenhagen
aa3f47c239
test(complete): Help for possible value 2023-08-07 14:02:57 +07:00
Roland Fredenhagen
65b9c2b37d
test(complete): Helper for asserting dynamic completions 2023-08-07 13:46:27 +07:00
Roland Fredenhagen
5b10a9d83c
test(complete): Test help escaping 2023-08-04 01:20:50 +07:00
Roland Fredenhagen
bdefebf663
feat(complete): Show help in dynamic completions 2023-08-04 01:20:47 +07:00
Roland Fredenhagen
4f9cf6be20
feat(complete): Dynamic fish completions 2023-08-01 01:42:05 +07:00
Ed Page
56afdabcc0 test(complete): Rename fixture to avoid ambiguity 2023-07-28 13:54:02 -05:00
Ed Page
dc953e95d0 test(complete): Register bash dynamic completions 2023-07-28 13:28:30 -05:00