Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved database pasting of text containing commas and line breaks #13068

Closed
TCOTC opened this issue Nov 6, 2024 · 10 comments
Closed

Improved database pasting of text containing commas and line breaks #13068

TCOTC opened this issue Nov 6, 2024 · 10 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Nov 6, 2024

目前允许在选项中使用英文逗号,导致无法从外部复制多个选项粘贴到单元格中,出现了不一致的行为:

对比 Notion Wolai SiYuan

video.webm

剔除英文逗号:

image

关联 https://ld246.com/article/1730797541762

@88250 88250 self-assigned this Nov 7, 2024
@88250 88250 assigned Vanessa219 and unassigned 88250 Nov 8, 2024
Vanessa219 added a commit that referenced this issue Nov 13, 2024
@Vanessa219 Vanessa219 changed the title 数据库选择字段的选项剔除英文逗号、通过英文逗号分隔选项 改进数据库粘贴时包含逗号和换行的文本处理 Nov 13, 2024
@Vanessa219 Vanessa219 added this to the 3.1.12 milestone Nov 13, 2024
@88250 88250 removed this from the 3.1.12 milestone Nov 13, 2024
@88250

This comment was marked as outdated.

@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 14, 2024

换行不应该去掉,换行之后的就是下一个条目的数据了

video.webm

@Vanessa219
Copy link
Member

是最新代码么?怎么看上去不太一样?

Jietu20241114-174516-HD.mp4

@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 14, 2024

我这里只选中了一个单元格:

image

@Vanessa219
Copy link
Member

只选中一个单元格的话是全部内容都放在一个单元格里面

@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 14, 2024

我录屏 0:15 的时候粘贴也有点问题,我建议用制表符来分隔单元格(Notion的方案),否则没法粘贴多个条目

@Vanessa219
Copy link
Member

没看懂他们的方案,感觉很奇怪。只选中一个单元格的话他们也是全部拷贝的。你想改进的点是?

Jietu20241115-103504-HD.mp4

@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 15, 2024

Notion 的处理应该是有 BUG,不过我的意思是用制表符来分隔单元格,这样粘贴的时候就能兼容单元格里出现空格的情况,不会把所有文本都粘贴到一个条目里

image

@Vanessa219
Copy link
Member

问题是从其他地方复制过来的不是制表符,如果是思源内部复制粘贴的话是没有问题的。

@Vanessa219 Vanessa219 added this to the 3.1.12 milestone Nov 17, 2024
@Vanessa219 Vanessa219 changed the title 改进数据库粘贴时包含逗号和换行的文本处理 Improved text containing commas and line breaks when pasting from a database Nov 17, 2024
@Vanessa219 Vanessa219 changed the title Improved text containing commas and line breaks when pasting from a database Improved database pasting of text containing commas and line breaks Nov 17, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 17, 2024

思源内部能实现复制粘贴应该就够了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants