lapce / lapce/floem

IME delete text support in editor

Open
#1,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.3k
Forks
218
PR merge metrics
No merged PRs in 30d

Description

The text input widget supports deleting text va IME, but the editor does not.


I tried to make the editor widget be able to delete text via IME request:

https://github.com/dcz-self/floem/tree/ime2

It kinda works, but it gets stuck easily because the value of ed.cursor.with_untracked(|c| c.offset()); doesn't change in the same call - and the cursor is expected to move after deletion is complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the editor widget's IME handling with the text input widget, and inspect the referenced ime2 branch, especially the cursor offset behavior described in the issue. The work is done when an IME deletion request completes reliably and the editor cursor advances afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, frontend, internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.