-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(completion): file completion for redirection target #16831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
65c6eff
to
a9ddcf5
Compare
a9ddcf5
to
364c411
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Hopefully we don't run into any problems with the removal of the space splitting thing, but we can fix that later
} | ||
|
||
/// Helper function to extract file-path expression from redirection target | ||
fn check_redirection_target(target: &RedirectionTarget, pos: usize) -> Option<&Expression> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: I feel like extract
would be better than check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was named extract_xxx
initially LoL. I don't remember what made me change my mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably because I later moved the position checking to this function.
For the release notes summary, something like "Added file completions for command redirections" should be enough |
Fixes #16827
Release notes summary - What our users need to know
Added file completions for command redirections (
o>>
,e>
, ...)Tasks after submitting