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

macOS 15.1 Apple Intelligence Writing Tools inject wrong texts into MacVim #1512

Open
ychin opened this issue Nov 14, 2024 · 0 comments
Open

Comments

@ychin
Copy link
Member

ychin commented Nov 14, 2024

macOS 15.1 added Writing Tools as part of the Apple Intelligence push. They work best with native NSTextView, where the user would get a nice inline experience, whereas for non-native texts like MacVim, it shows a dialog box instead (this is done by selecting the text using visual mode, then right click to bring up the menu and select "Summarize" from Writing Tools):

writing-tools-replacement-dialog-box

After selecting the "Replace" option though it seems like MacVim isn't properly handling the results and the text is garbled.

wrong-replaced-texts

I think MacVim is not handling the NSServicesMenuRequestor API correctly. It already supports this protocol for selected texts (which is how we get the "Services" menu item for selected texts for things like converting Traditional Chinese to Simplified Chinese) but it could be buggy for this new use case. We should fix it to support Writing Tools even though the non-inline UI isn't quite as good, as the current behavior leads to unexpected behaviors.

@ychin ychin added this to the Release 181 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant