Automatically select ValueHint for Paths when deriving Parser #3607
jcgruenhage
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The biggest annoyance is detecting types. We just get the item path as written down. We have to then handle See #2683 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, arguments require explicity setting a
ValueHint
to get files completed. If the argument is aPathBuf
orPath
though, it's pretty obvious that what we're dealing with is some sort of a path, and defaulting toValueHint::AnyPath
would therefore be the more logical choice.I'm not sure whether this change is worth it though, since it's probably only applicable to that one type, and even for that type, there are multiple more specific variants which one might choose instead, which is why I'm posting this as a discussion instead of posting it as a feature request issue. Any opinions?
Beta Was this translation helpful? Give feedback.
All reactions