-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Actually show glyphs for latex or emoji shortcodes being suggested in the REPL #54800
Actually show glyphs for latex or emoji shortcodes being suggested in the REPL #54800
Conversation
I think the implementation is not quite right yet, it's probably not allowed/expected to have the completion start differently than what is being completed. Then you get this weird behavior once the list is narrowed down to one element: Screen.Recording.2024-06-14.at.15.52.17.movWould appreciate if someone in the know could comment what other mechanism should be used instead. |
You'll need to tweak the assumption that the completion being disabled and the text to be inserted are always the name. Probably the easiest way to do that is to pull the array of completions one level higher into |
I've introduced a fix.mov.mp4 |
Looks like CI fails because an extension of Pkg uses |
The use in Pkg predates them being separate packages. In general, REPL does not have a public API. Either way to fix this is fine (providing a fallback for the old code or fixing Pkg at the same time). |
Finally returned to this PR.. I've reverted some of the changes that made the Pkg extension fail, this makes the code a little uglier due to the handling of two tuple types for It doesn't seem to me like the two build failures on CI are related to my changes, tests seem to pass otherwise. |
@IanButterworth Would you be able to review this PR? |
Bump :) |
Bump @IanButterworth Would you be able to review this? |
Sorry I'm not very familiar with this code. Perhaps the blame would show someone better suited? |
From looking at the git blame, maybe @Keno or @rfourquet? |
Thank you Keno!! |
… the REPL (#54800) When a user requests a completion for a backslash shortcode, this PR adds the glyphs for all the suggestions to the output. This makes it much easier to find the result one is looking for, especially if the user doesn't know all latex and emoji specifiers by heart. Before: <img width="813" alt="image" src="https://github.com/JuliaLang/julia/assets/22495855/bf651399-85a6-4677-abdc-c66a104e3b89"> After: <img width="977" alt="image" src="https://github.com/JuliaLang/julia/assets/22495855/04c53ea2-318f-4888-96eb-0215b49c10f3"> --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
When a user requests a completion for a backslash shortcode, this PR adds the glyphs for all the suggestions to the output. This makes it much easier to find the result one is looking for, especially if the user doesn't know all latex and emoji specifiers by heart.
Before:
After: