Commit graph

592 commits

Author SHA1 Message Date
Vivien Maisonneuve
81d92682ce chore(complete): Add descriptions to dynamic Zsh completions 2024-10-21 15:35:19 +02:00
Ed Page
61f5ee514f chore: Release 2024-10-08 08:56:17 -05:00
Ed Page
3e6538427f docs: Update changelog 2024-10-08 08:55:52 -05:00
shannmu
fc82a3e528 feat(complete): Support to complete custom external subcommand 2024-10-08 15:49:02 +08:00
shannmu
6a09122421 test(complete): Add test for external subcommand 2024-10-07 16:29:44 +08:00
Ed Page
f89afeb861 refactor(complete): Put most general completer first 2024-10-02 12:05:53 -05:00
Ed Page
81b9db2da0 chore: Release 2024-10-02 12:03:17 -05:00
Ed Page
d3d7a17e82 chore: Merge branch 'master' into upstream/master 2024-10-02 12:02:31 -05:00
Ed Page
361114ef0f chore: Release 2024-10-02 12:01:34 -05:00
Ed Page
b693fc0fa3 docs: Update changelog 2024-10-02 12:01:27 -05:00
Ed Page
e90b2daf5e refactor(complete): Pull our registration writing 2024-10-02 10:10:58 -05:00
Ed Page
95e99ef118 refactor(complete): Pull out shell lookup 2024-10-02 09:55:33 -05:00
Ed Page
4af0cd65f1 fix(complete): Loosen requirements on Command factory 2024-10-02 09:54:31 -05:00
Ed Page
f40b37f1d8 chore: Release 2024-10-02 09:34:07 -05:00
Ed Page
63bfe1a532 docs: Update changelog 2024-10-02 09:33:58 -05:00
Ed Page
08875932f7 fix(complete): Change ValueHint::Unknown to Other, from AnyPath
`AnyPath` is the documented behavior *but* thats to help when there
isn't much other information.  With us choosing a `ValueHint` based on
the value parser, we are less likely to get benefit from `AnyPath`.

Instead, this will greatly improve cases like Cargo where we offer path
completions on many arguments where it doesn't make sense.
2024-10-02 09:16:21 -05:00
Ed Page
9e4fc9b697 test: Make shell integration tests non-blocking
We're running into the problem of tests being dependent on the version
of the command.

This has a side benefit of speeding up builds of tests because we don't
build nushell as often.
2024-09-27 13:53:12 -05:00
Ed Page
cbcbaa3ad4 style: Make clippy happy 2024-09-26 21:20:17 -05:00
shanmu
7df66be695 doc(complete): Fix how to add completions in elvish 2024-09-22 03:48:50 +08:00
Ed Page
1f74b0178d chore: Release 2024-09-20 15:05:01 -05:00
Ed Page
23feee1c13 docs: Update changelog 2024-09-20 15:04:54 -05:00
Ed Page
ae1457b34a chore(complete): Update require clap 2024-09-20 15:02:49 -05:00
Ed Page
232ee10661 fix(complete): Use existing display order for Arg/Command 2024-09-20 14:45:54 -05:00
Ed Page
67d9fef9ce feat(complete): Give control over display order 2024-09-20 14:39:18 -05:00
Ed Page
59a61e188f refactor(complete): Pull out common candidate code 2024-09-20 14:36:07 -05:00
Ed Page
1448791940 fix(complete): Specify tags for built-in candiates 2024-09-20 14:29:05 -05:00
Ed Page
a4aa5dffdf feat(complete): Group by tag 2024-09-20 14:04:40 -05:00
Ed Page
a126149a80 refactor(complete): Remove redundant dedup
Our `id` de-duping takes care of this.
2024-09-20 13:59:16 -05:00
Ed Page
cd6280fc87 fix(complete): Have shorts fallback to using long as description
It should be rare that this is helpful
2024-09-20 13:43:23 -05:00
Ed Page
8af051c439 fix(complete): When completing -[TAB], prioritize shorts 2024-09-20 13:43:23 -05:00
Ed Page
7422785a85 refactor(complete): Merge argument handling 2024-09-20 13:43:23 -05:00
Ed Page
6b426dfd70 test(complete): Add another sort/filter case 2024-09-20 13:43:12 -05:00
Ed Page
8b88646129 style: Format test 2024-09-20 13:42:50 -05:00
Ed Page
89a9d79a4c fix(complete): De-duplicate built-in candidates
Part of #5058
2024-09-20 11:07:17 -05:00
Ed Page
7b06d9a358 feat(complete): Allow de-duplicating of candidates 2024-09-20 11:07:01 -05:00
Ed Page
2bd2c1262e fix(complete): Prioritize subcommands, positionals over flags 2024-09-20 10:37:53 -05:00
Ed Page
d32b1fc52d test(complete): Add sort/filter test 2024-09-20 10:37:25 -05:00
Ed Page
e08f7db03f test(complete): Fix snapshot macro 2024-09-20 10:37:15 -05:00
Ed Page
5b2912b63e fix(complete): Improve completion debugging 2024-09-20 10:37:15 -05:00
Ed Page
257d7812b9 chore: Release 2024-09-17 16:12:36 -05:00
Ed Page
06c5f5f329 docs: Update changelog 2024-09-17 16:12:29 -05:00
Ed Page
a7a8f93d6b fix(complete): Strip wrappers for running completer 2024-09-17 15:47:46 -05:00
Ed Page
b2c8e445aa feat(complete): Allow user to override bin/completer 2024-09-17 15:43:53 -05:00
Ed Page
21c9892efe chore: Release 2024-09-17 15:34:35 -05:00
Ed Page
0c8bceb3e9 docs: Update changelog 2024-09-17 15:34:27 -05:00
Ed Page
c92fca3a8f docs(complete): Clarify CompleteEnv's Shell trait 2024-09-17 15:16:32 -05:00
Ed Page
5d7c16c60e fix(complete): Adjust how IFS is passed to clap
No idea why using passing along `IFS` isn't workong on my machine (but is for tests).

Fixes #5730
2024-09-17 14:54:11 -05:00
Ed Page
df1efca035 chore: Release 2024-09-05 09:18:05 -05:00
Ed Page
d48bef65af docs: Update changelog 2024-09-05 09:17:58 -05:00
Ed Page
6b7aa3d490
Merge pull request #5628 from mart-mihkel/complete_hyphen
Support `allow_hyphen_values` in native completions
2024-09-05 09:17:05 -05:00