Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Text Expander/cursor-handling bug

未关闭
#703 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@LeanBitLab 已经在做这个了。

开始于 2026年10月20日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, kotlin
领域
frontend, mobile

调研方向

Start by tracing how Text Expander handles the %cursor% marker and inserts the expansion text; the report names no source files or tests. Reproduce with AB%cursor%CD in Markor, then compare the result after typing x with the expected ABxCD; the issue is done when no extra space appears before the typed character.

由索引模型根据 Issue 内容生成。

描述

bug

Description of the bug

LeanType is seen inserting an unwanted space before the typed character while using %cursor% in Text Expander shortcuts.

This seems to be a LeanType Beta 4.2.9 Text Expander/cursor-handling bug, not a mistake in the shortcut templates. Happens in ChatGPT, Markor, MiXplorer and WhatsApp.

To Reproduce

  1. In Text Expander, create shortcut zzx.
  2. Set its expansion to exactly AB%cursor%CD — no spaces anywhere.
  3. Trigger the expansion in Markor.
  4. Type x.

Expected behavior

The official LeanType repository documents %cursor% as placing the cursor at the specified position. So,

  • Expected result: ABxCD.
  • Obtained result: AB xCD.

App version & Flavor

v4.2.9 beta9 standard

Device Info

  • OnePlus 11 5G
  • OxygenOS Android 14
主要语言
Kotlin
星标
1k
派生
59
平均合并
13 小时 11 分钟
30 天内合并 PR
47

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LeanBitLab/LeanType 的其他 Issue

查看 LeanBitLab/LeanType 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。