[Feature request] 在预编辑区内移动光标时,使光标不要循环移动

Open
#993 7 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start by locating the pre-edit area’s cursor movement handling and review issue #876 for the related behavior. Reproduce movement at both ends of the pre-edit area, then determine whether the default should stop at the boundary or expose an option. Done means cursor movement no longer wraps around, or the behavior can be disabled as requested.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
目前,当预编辑区内光标处于最右侧时,再按下右方向键,光标会移动到最左侧,反之亦然。
但是,这个机制在手机上会造成一些麻烦,因为不存在方向键及 HOME、END,手机输入法一般会采用滑动空格键的方式来移动光标。因此,当修改句中拼音后,难以快速将光标移回预编辑区的最右侧。

Describe the solution you'd like
修改默认机制或增加一个选项,禁用光标的循环移动。

Describe alternatives you've considered
如能实现 #876 中描述的功能,也能解决我目前遇到的困境。

Dominant language
C++
Stars
4.7k
Forks
752
Avg merge
4d 7h
Merged PRs (30d)
16

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from rime/librime

All issues in rime/librime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.