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
6243d65463
fix: Only generate stubs if has subcommands
2024-07-11 06:01:42 +07:00
Lzu Tao
1dd1056cd7
fix: Check for real optional arguments
2024-07-07 07:27:47 +07:00
Lzu Tao
a6ac45f566
feat(fish): Support nested subcommand completion
2024-07-06 07:27:56 +07:00
Lzu Tao
1c5a625ad0
fix: Fix wrong cfg(linux)
2024-07-05 15:35:01 -05:00
Lzu Tao
2d2d1f4987
chore: Bump completest
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
Lzu Tao
5ee1a2570e
fix(fish): Don't ignore files if has positional args
2024-06-28 10:20:09 +07:00
Lzu Tao
1e3681bfbc
refactor: Pass list to __fish_seen_subcommand_from
2024-06-27 07:22:04 +07:00
Ed Page
5cc44bb91e
Merge pull request #5548 from tesuji/fish-escape-tab
...
style: fish: escaping tab as \t for more readibility
2024-06-26 12:27:13 -05:00
Ed Page
0724b7ba2b
chore: Remove tarpaulin support
2024-06-26 09:03:34 -04:00
Lzu Tao
b16f987ad7
style: Escaping tab as \t for more readability for fish
2024-06-25 08:42:49 +07:00
Ben Rogers
8e3c273b61
fix(zsh): Separate options from _arguments options
2024-06-07 15:20:04 -04:00
Ed Page
d87dee6d48
Merge pull request #5476 from pzmarzly/issue-4265
...
feat(complete): generate completions for visible aliases
2024-06-06 16:33:01 -05:00
Ed Page
75e2199415
chore: Upgrade snapbox
2024-05-24 10:13:50 -05:00
Pawel Zmarzly
5000d58f38
feat(complete): Add autocomplete for visible_alias
...
Let's generate autocompletions for aliased subcommands.
$ source before.zsh
$ clap-test [TAB] <- gives me "foo bar --"
$ clap-test foo [TAB] <- gives me "--my-flag"
$ clap-test bar [TAB] <- no reaction
$ source after.zsh
$ clap-test [TAB] <- gives me "foo bar --"
$ clap-test foo [TAB] <- gives me "--my-flag"
$ clap-test bar [TAB] <- gives me "--my-flag"
2024-05-17 15:17:44 +01:00
Pawel Zmarzly
be15bd5d96
fix(complete): Fix zsh.rs subcommand deduplication
...
Fixing the iteration over all_subcommands in zsh.rs. We deduplicate
values on (sc_name, bin_name) keys, but then only iterate on bin_name.
This doesn't cause problems now, since all bin names seem to be unique.
However, without fixing this, the next commit would have started
generating duplicated functions with same names.
For example, with an #[long = "foo", visible_alias = "bar"] subcommand,
we'll end up with 2 pairs: [("foo", "foo"), ("bar", "foo")]. Before this
commit, we would have ended up generating _my-app__foo_commands()
functions. These functions should have identical content, so it is not
an error, just an inefficiency that we can fix.
2024-05-17 15:16:43 +01:00
Ed Page
800d7cb8ad
chore: Update from template
2024-05-14 12:27:02 -05:00
sudotac
cd82f8cc8e
fix(complete): Avoid use of -v in bash completion
...
Because -v is not supported below bash 5.0.
2024-04-07 23:19:50 +09:00
Alexis (Poliorcetics) Bourget
e782775229
fix(complete): Handle newlines in command/arg descriptions
...
Found while trying to add Nushell completions to
[`jj`](https://github.com/martinvonz/jj ).
2024-02-16 16:17:22 -06: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