mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-27 05:45:53 +03:00
[PR #537] [MERGED] feat: 文件创建时空格自动替换为下划线 #753
Labels
No labels
bug
duplicate
feature
platform: Android
platform: Linux
platform: Windows
platform: iOS
platform: macOS
priority: high
priority: low
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/note-gen#753
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/codexu/note-gen/pull/537
Author: @jiayuqi7813
Created: 8/11/2025
Status: ✅ Merged
Merged: 8/12/2025
Merged by: @codexu
Base:
dev← Head:dev📝 Commits (3)
6faac3bfix: 统一处理文件名中的空格,确保本地与远程文件名一致3f57a29fix: 修复 Gitlab API 相关函数的类型定义和返回值8d56a18fix: 处理文件名为空的情况,防止选择和删除操作出错;统一文件名中的空格为下划线📊 Changes
7 files changed (+100 additions, -75 deletions)
View changed files
📝
README.md(+1 -1)📝
src/app/core/article/file/file-item.tsx(+58 -49)📝
src/app/core/article/file/file-manager.tsx(+9 -5)📝
src/app/core/article/file/folder-item/index.tsx(+16 -12)📝
src/app/core/article/md-editor.tsx(+11 -6)📝
src/app/core/record/chat/note-output.tsx(+3 -1)📝
src/lib/gitlab.ts(+2 -1)📄 Description
最近在用的时候发现同步到远程本地创建的带空格的文件名同步到git,会重复新增一个空格转为下划线的文件,看了一下git不支持,倒是很合理,既然这样感觉不如直接创建本地文件的时候就加空格算了。故实现了一下。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.