zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.45k stars 3.12k forks source link

Issue with Chinese Input Candidate Box Movement #21004

Open WantenMN opened 15 hours ago

WantenMN commented 15 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I’ve encountered an issue with the Chinese input experience in Zed when using the Fcitx5 input method. Specifically, the candidate box behaves differently compared to other applications.

When I type multiple Chinese words in Zed, the left edge of the candidate box follows the cursor and moves to the right as I type. This causes a significant problem with usability because I have to constantly adjust my focus to follow the moving candidate box.

In comparison, when I use applications like Alacritty or Firefox, the candidate box remains fixed at the initial input position, which provides a much better input experience.

Environment

Zed: v0.159.7 (Zed) OS: Linux Wayland nixos 24.11 Memory: 15.5 GiB Architecture: x86_64 GPU: Intel(R) UHD Graphics 630 (CFL GT2) || Intel open-source Mesa driver || Mesa 24.2.5

If applicable, add mockups / screenshots to help explain present your vision of the feature

I am attaching two screenshots for reference:

  1. A screenshot showing the moving candidate box behavior in Zed. Screenshot from 2024-11-22 01-16-42

  2. A screenshot showing the fixed candidate box behavior in Alacritty. Screenshot from 2024-11-22 01-17-00

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
jansol commented 15 hours ago

The candidate box does not seem to be moving around on macOS. Haven't checked how it behaves on X11, but can confirm that it does move on Wayland.