Commit graph

606 commits

Author SHA1 Message Date
8LWXpg
518fedcd64
Update lib.rs 2024-11-29 22:08:03 +08:00
Ed Page
2920fb082c chore: Release 2024-11-13 12:52:48 -06:00
Ed Page
6f78e2a3ff docs: Highlight notes/warnings in a block 2024-11-08 11:07:48 -06:00
Ed Page
c54ffa17f5 chore: Release 2024-11-04 09:55:55 -06:00
Ed Page
26eab7b4e5 docs: Update changelog 2024-11-04 09:55:44 -06:00
Ed Page
7c7742cae8 fix(complete): Adjust dynamic for MSRV 2024-11-04 09:48:16 -06:00
Ed Page
f1ae3c0e49 style: Make clippy happy 2024-11-04 09:44:03 -06:00
Ed Page
7a6475e3c1 chore: Release 2024-10-29 13:00:38 -05:00
Ed Page
0266c4197f docs: Update changelog 2024-10-29 13:00:31 -05:00
Oliver Kiddle
e40168c2fd fix(zsh): Use _default as zsh completion fallback
That is for a ValueHint of Unknown. This is consistent with bash where
compgen -f is used in such cases. In long experience with completions
distributed with zsh, the worst thing you can do is break filename
completion as that's the minimum most user's expect.
2024-10-28 21:16:38 +01:00
Ed Page
55a18f518b chore: Release 2024-10-23 20:24:16 -05:00
Ed Page
3b0563580d fix(complete): Ensure new enough clap is used 2024-10-23 20:24:07 -05:00
Ed Page
5d2cdac3e6 chore: Release 2024-10-23 20:17:03 -05:00
Ed Page
f1c10ebe58 docs: Update changelog 2024-10-23 20:16:56 -05:00
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