Skip to content
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

ensure alias value is used for spec when generating completions #242585

Merged
merged 5 commits into from
Mar 5, 2025

Conversation

meganrogge
Copy link
Contributor

fixes #242522

@meganrogge meganrogge self-assigned this Mar 4, 2025
@meganrogge meganrogge requested a review from Tyriar March 4, 2025 17:47
@meganrogge meganrogge added this to the March 2025 milestone Mar 4, 2025
@meganrogge meganrogge enabled auto-merge (squash) March 4, 2025 17:48
Tyriar
Tyriar previously requested changes Mar 4, 2025
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can do this actually since aliases can be more than just running executables. For example:

alias s="for i in {1..5}; do echo "hello"; sleep 1; done"

image

For the case in the issue, the important thing we must ensure is that definitionCommand is used to source the relevant fig spec, so we don't show the python spec completions for pythonfake.

@meganrogge meganrogge requested a review from Tyriar March 4, 2025 20:44
@meganrogge meganrogge changed the title ensure alias command is a valid executable ensure alias value is used for spec when generating completions Mar 4, 2025
Tyriar
Tyriar previously approved these changes Mar 4, 2025
@Tyriar Tyriar closed this Mar 5, 2025
auto-merge was automatically disabled March 5, 2025 14:17

Pull request was closed

@Tyriar Tyriar reopened this Mar 5, 2025
@Tyriar Tyriar enabled auto-merge (squash) March 5, 2025 14:17
@Tyriar Tyriar merged commit bfafb93 into main Mar 5, 2025
12 checks passed
@Tyriar Tyriar deleted the embarrassing-snail branch March 5, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

we don't validate that aliases are executable for terminal suggestions
3 participants