Ed Page
6f78e2a3ff
docs: Highlight notes/warnings in a block
2024-11-08 11:07:48 -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
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
Vivien Maisonneuve
81d92682ce
chore(complete): Add descriptions to dynamic Zsh completions
2024-10-21 15:35:19 +02:00
shannmu
fc82a3e528
feat(complete): Support to complete custom external subcommand
2024-10-08 15:49:02 +08:00
Ed Page
f89afeb861
refactor(complete): Put most general completer first
2024-10-02 12:05:53 -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
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
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
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
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
5b2912b63e
fix(complete): Improve completion debugging
2024-09-20 10:37:15 -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
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
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
mart-mihkel
57b6cb8e47
refactor(complete): Simplify engine::complete
2024-09-05 15:15:22 +03:00
mart-mihkel
b7cfbdcf96
feat(complete): Native support for hyphen values
2024-09-05 15:15:14 +03:00
Ed Page
e2d336b95f
fix(complete): Put clap in chage of Fish ordering
2024-09-04 14:28:03 -05:00
Ed Page
059db0c139
docs(complete): Clarify what flags we're using
2024-09-04 14:26:44 -05:00
Ed Page
72dda07a42
fix(complete)!: Remove CompleteCommand
...
This just has too many caveats to be worth maintaining
2024-08-28 21:29:12 -05:00
Ed Page
b04bf72436
fix(complete)!: Be consistent in value language
2024-08-22 12:29:48 -05:00
Ed Page
84252b7123
fix(complete): Allow completing '.'
2024-08-21 15:06:46 -05:00
Ed Page
951762db57
feat(complete): Allow any OsString-compatible type to be a CompletionCandidate
2024-08-21 14:25:40 -05:00
Ed Page
bb6493e890
feat(complete): Offer - as a path option
2024-08-21 14:24:16 -05:00
Ed Page
27b348dbcb
refactor(complete): Simplify ArgValueCandidates code
2024-08-21 14:16:52 -05:00
Ed Page
49b8108f8c
feat(complete): Add PathCompleter
2024-08-21 14:11:52 -05:00
Ed Page
82a360aa54
feat(complete): Add ArgValueCompleter
2024-08-21 14:11:52 -05:00
Ed Page
47aedc6906
fix(complete): Ensure paths are sorted
2024-08-21 14:11:48 -05:00
Ed Page
d7b8aafdc3
refactor(complete): Dont duplicate complete_path
2024-08-21 13:32:47 -05:00
Ed Page
218ee5d9dc
refactor(complete): Move complete_path to long term location
...
I'd like to remove `ValueHint` eventually
2024-08-21 13:19:39 -05:00
Ed Page
78157e6ce6
fix(complete): Preserve absolute paths
2024-08-21 11:58:11 -05:00
Ed Page
ebb1302e90
refactor(complete): Remove no-op help calls
2024-08-21 11:29:08 -05:00
Ed Page
2f07f3cc61
refactor(complete): Remove manual path splitting
2024-08-21 11:27:55 -05:00
a-kenji
4fbbc3a6ca
fix: Typos in documentation to CompleteEnv
2024-08-20 22:12:16 +02:00