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

Preedit text should support multiple lines of input #2502

Open
1dancook opened this issue Oct 26, 2024 · 1 comment
Open

Preedit text should support multiple lines of input #2502

1dancook opened this issue Oct 26, 2024 · 1 comment

Comments

@1dancook
Copy link

Description

Typing Japanese in a pre-completed state doesn't wrap around when it should. Instead, the pre-completed text is truncated and remains on the same line. The effect is that you can only see a portion of what is typed, which makes it difficult to see what has been typed and additionally difficult to use several completion selections.

Example

I've recorded a short video. On the left is textedit, on the right Ghostty. The normal behavior in apps is for Japanese to wrap while typing as seen in textedit (with wrapping turned on). (Ignore the completion window getting annoyingly in the way!)

japanese-input-ghostty.mov

Version

Ghostty: ffc4c6e
MacOS 15.0.1

Other

I have seen another issue with Japanese input (just having one character displayed). It only seems vaguely related so I'm not linking it. I suspect this issue affects other languages that require IME + completion but I haven't tried to test those.

@mitchellh
Copy link
Contributor

The preedit is limited to one line. You can make the window wider to support longer pre-edits. This is an intended limitation right now. I think the preedit should be expanding farther to the left to take up the full line if possible but it explicitly doesn't support multiple lines right now.

I've changed the title and tags to reflect this.

@mitchellh mitchellh changed the title Japanese in a pre-completion state is truncated while typing. Preedit text should support multiple lines of input Oct 27, 2024
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

No branches or pull requests

2 participants