-
Notifications
You must be signed in to change notification settings - Fork 63
completion for inferior-fsharp? #184
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
Comments
Yes, |
So what they do is use readline.set_completer and comint-redirect-ish functions to grab completions from the inferior process and then show them to the user of the REPL. Comint basically assumes everything is line-based so the best case scenario involves a bit of an awkward dance when you want to communicate with the underlying process without sending newlines. I've made a little bit of progress on tab completion for inferior-fsharp but it's got a long way to go. I'm not familiar enough with fsharp to see the direct path to instrumenting fsi or it's completion in a similar way to Are we OK with longer-lived WIP PRs here? I'm happy to to provide a starting point for right now and get some eyes/feedback on things while getting a more complete set of functionality if so. |
Thanks a lot for for your research: I would love to see a (WIP) PR and help out! |
I was looking a bit into how IFsharp is doing the the autocompletion (https://github.com/fsprojects/IfSharp/blob/74e8ec47f9f3a5a7babb54b463d648e94bdfe813/src/IfSharp.Kernel/Evaluation.fs#L159) and it seems the way to go would be to get an access to I have not found a way how to do it from inside of |
Is it possible to add tab completion for inferior-fsharp, just like inferior-python or utop?
The text was updated successfully, but these errors were encountered: