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

feat: autocomplete works with tilde and absolute dirs #1216

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ryan-timothy-albert
Copy link
Contributor

@ryan-timothy-albert ryan-timothy-albert commented Jan 15, 2025

This allows absolute paths to work in autocomplete.

For ~ paths we are currently validating them out. There is actually no reason we can't provide file suggestions for ~/ paths, that's not difficult, the problem is actually downstream in the workflow file/sdk generation those file references will not be valid. One option would be to convert a ~/ path right after the form completes to a relative path. I'm not sure if that's better than just disallowing it though with clear messaging. Fishing for thoughts.

I think the discussion of whether or not we even want to allow use of files outside your current directory in things like quickstart is a different discussion.

https://www.loom.com/share/a0d6bcfc6f0a417d8e727713d545c225?sid=5c07e75d-7781-4332-a88d-639a6e05d525

https://linear.app/speakeasy/issue/SPE-4581/bug-tab-completion-does-not-work-during-quickstart

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.

1 participant