[PR #574] [MERGED] fix: 修复中文输入法在文件夹命名时的空格替换问题 #755

Closed
opened 2026-03-02 03:41:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/574
Author: @jiayuqi7813
Created: 8/22/2025
Status: Merged
Merged: 8/29/2025
Merged by: @codexu

Base: devHead: dev


📝 Commits (3)

  • 2ed541d feat: 优化输入处理,支持输入法合成状态下的空格替换
  • 46552d2 feat: 优化输入处理,支持输入法合成状态下的光标位置保持和空格替换
  • dbb11dd Merge branch 'codexu:dev' into dev

📊 Changes

2 files changed (+107 additions, -18 deletions)

View changed files

📝 src/app/core/article/file/file-item.tsx (+45 -11)
📝 src/app/core/article/file/folder-item/index.tsx (+62 -7)

📄 Description

修复在文件/文件夹重命名时使用中文输入法会导致拼音阶段的空格被错误替换为下划线,造成输入混乱。
例如:输入"你好"时会显示为"ni_hni_hani_hao你好"

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/574 **Author:** [@jiayuqi7813](https://github.com/jiayuqi7813) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/29/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (3) - [`2ed541d`](https://github.com/codexu/note-gen/commit/2ed541d44763490a93d1aa03e9d012fc6e29dde0) feat: 优化输入处理,支持输入法合成状态下的空格替换 - [`46552d2`](https://github.com/codexu/note-gen/commit/46552d22b345a20a584917d4aa15b7e34e6a1120) feat: 优化输入处理,支持输入法合成状态下的光标位置保持和空格替换 - [`dbb11dd`](https://github.com/codexu/note-gen/commit/dbb11ddd4a39a430b7f113fade1d6efb2b14a290) Merge branch 'codexu:dev' into dev ### 📊 Changes **2 files changed** (+107 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/app/core/article/file/file-item.tsx` (+45 -11) 📝 `src/app/core/article/file/folder-item/index.tsx` (+62 -7) </details> ### 📄 Description 修复在文件/文件夹重命名时使用中文输入法会导致拼音阶段的空格被错误替换为下划线,造成输入混乱。 例如:输入"你好"时会显示为"ni_hni_hani_hao你好" <img width="1054" height="326" alt="image" src="https://github.com/user-attachments/assets/b818f4e1-5490-4853-8b87-768e51f133e5" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#755
No description provided.