-
Notifications
You must be signed in to change notification settings - Fork 341
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
Prompt input does not handle emoji grapheme clusters #4191
Comments
Hey @paperdave what font are you using? I recommend nerd fonts which contain a lot more characters. I also recommend a custom prompt like p10k which will help with displaying characters correctly in the setup. Prompt Docs: https://docs.warp.dev/appearance/prompt#custom-prompt-compatibility-table |
Heyo! We now support Emoji Presentation Selectors from Unicode in Warp 😄 i.e. stuff like ❤️ and ☁️ should be correctly rendered! We implemented this as a part of #2304 (for better Starship prompt support in fish with chips such as gcloud). Note that there's a bug with Zsh that results in slight spacing issues (not the case in bash/fish) - see https://www.zsh.org/mla/workers/2024/msg00481.html for some discussion on that front. Though, there's additional Unicode specifications we need to support in order to support some of the other emoji mentioned here e.g. 🏳️⚧️ As such, I'm going to leave this issue open for now, until we get around to better support for those! |
Ah, to clarify @paperdave: this is in finished blocks! Fixing emoji presentation selector support in the input editor is a known issue and we'll prioritize this later (no concrete ETA here unfortunately) |
(in addition to more broadly supporting grapheme clusters throughout both later!) |
Discord username (optional)
paperdave.net
Describe the bug
warp's input buffer is unusable when using certain multi-codepoint emojis. i dont seem to reproduce this for all grapheme cluster types, just emojis.
To reproduce
Expected behavior
i would like to see one grapheme, similar to other terminals
but ideally, the cursor is actually sticks at the end of the single grapheme, since this is a GUI app with a gui text input; this prompt does not need to abide by wcrules.
support for proper grapheme cluster support is opened in #4190, which covers this more broadly.
Screenshots
(this is 🏳️⚧️)
![image](https://private-user-images.githubusercontent.com/24465214/305715568-d381b455-eb11-4e39-ba25-dfe9e42f87f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4MzYwNDMsIm5iZiI6MTcyMjgzNTc0MywicGF0aCI6Ii8yNDQ2NTIxNC8zMDU3MTU1NjgtZDM4MWI0NTUtZWIxMS00ZTM5LWJhMjUtZGZlOWU0MmY4N2YyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDA1MjkwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjZWQ2MjQ3ZThkYWU5YjM0NDA0MWI5YjM0Yjk5NzI2NWJjN2FkYmNmNmRlZDRiZTBjYTBmZGY4MzZjN2M1OTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Wjf0S7cICR6ECK-xy01Yog9dvqu3nl7NShHu2TsYDb0)
Operating system
MacOS
Operating system and version
MacOS 13.6
Shell Version
fish, version 3.6.1
Current Warp version
v0.2024.02.13.08.02.stable_00
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
This seems distinct from #1995 as this issue is looking at prompt and not the output. when used in a non-warpify shell, this emoji kind of renders differently
i think resolving this is covered by that issue or a new issue.
Does this block you from using Warp daily?
No
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
The text was updated successfully, but these errors were encountered: