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

Improve copy and cut after multiple selection of cells in the table #10488

Closed
Vanessa219 opened this issue Mar 3, 2024 · 16 comments
Closed

Improve copy and cut after multiple selection of cells in the table #10488

Vanessa219 opened this issue Mar 3, 2024 · 16 comments
Assignees
Milestone

Comments

@Vanessa219
Copy link
Member

https://ld246.com/article/1709137932420/comment/1709391576381?r=Vanessa#comments

剪切或复制多个单元格后,最终粘贴出来都是一个完整的表格

@Vanessa219 Vanessa219 self-assigned this Mar 3, 2024
@88250 88250 changed the title Improved copy and cut after multiple selection of cells in the table Improve copy and cut after multiple selection of cells in the table Mar 3, 2024
@Vanessa219 Vanessa219 added this to the backlog milestone Mar 3, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Sep 20, 2024

关联 #4785

@TCOTC
Copy link
Contributor

TCOTC commented Oct 26, 2024

希望还能支持复制 A 表格的一部分粘贴到 B 表格里

@TCOTC
Copy link
Contributor

TCOTC commented Oct 26, 2024

用户需求:

Vanessa219 added a commit to siyuan-note/petal that referenced this issue Oct 29, 2024
Vanessa219 added a commit to siyuan-note/petal that referenced this issue Oct 29, 2024
Vanessa219 added a commit that referenced this issue Oct 29, 2024
@Vanessa219 Vanessa219 modified the milestones: backlog, 3.1.11 Oct 29, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Oct 29, 2024

|                  | 变量 | 默认图标 | 设置的图标 |
| ------------------ | ------ | ---------- | ------------ |
| 普通文档         | `siyuan.storage["local-images"].file`     | 📄`1F4C4`       |            |
| 含有子文档的文档 | `siyuan.storage["local-images"].folder`     | 📑`1f4d1`       | 📁`1F4C1`         |
| 笔记本           | `siyuan.storage["local-images"].note`     | 🗃`1f5c3`       | 🗂️`1F5C2`       |

直接粘贴到段落块没问题,但粘贴到表格会有一点问题(见第一个录屏):

  1. 粘贴第二次才粘贴完整
  2. 单元格高亮没有同步移动

此外还有两点:

  1. 特定情况无法多选单元格(第二个录屏里只演示了行级代码,不知道其他行级样式会不会影响)
  2. 希望能接着再解决一下 Improve table cell selection #11388
default.webm
default.webm

Vanessa219 added a commit that referenced this issue Oct 30, 2024
Vanessa219 added a commit that referenced this issue Oct 30, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Oct 31, 2024

01 多选单元格之后不应该有光标、需要支持通过 Backspace 和 Delete 清空选中的单元格

image

02 再支持一下从数据库复制粘贴到表格:

default.webm

@Achuan-2
Copy link
Member

Achuan-2 commented Nov 2, 2024

从表格A选中部分复制到表格B,现在必须要先选中B对应数量单元格,才能成功粘贴,这个能否改进下呢。可以点击B表格的某个单元格,就可以直接在B表格粘贴从表格A复制的多个单元格呢?

复制A表格的一部分
image
选择B表格要粘贴的单元格
image

@Vanessa219
Copy link
Member Author

@TCOTC 由于和 notion 设计不同,选中后都会标记当前光标位置,第一点就不进行修改了。
用上数据库一般就不会转换为表格了,等后续看看此需求的用户比例。

@Achuan-2 不选择单元格的话会有以下问题

Jietu20241102-144106-HD.mp4

Vanessa219 added a commit that referenced this issue Nov 2, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Nov 2, 2024

用上数据库一般就不会转换为表格了

有时候我会发现用数据库太“重”了,几个单元格的事情没必要用上数据库,所以就想把数据库转换回普通表格

@TCOTC
Copy link
Contributor

TCOTC commented Nov 2, 2024

不选择单元格的话会有以下问题

有没有办法像数据库这样,空的单元格也不影响粘贴:

video.webm

目前如果选错范围粘贴出来的位置也会错,操作起来很麻烦:

video.webm

@Vanessa219
Copy link
Member Author

那可以搞一个数据库转换为表格的功能岂不是更快。
目前先按照用户划选的范围进行粘贴吧,后面有空再继续完善表格的功能。

@TCOTC
Copy link
Contributor

TCOTC commented Nov 3, 2024

可以搞一个数据库转换为表格的功能岂不是更快

快是快了,但数据库可以筛选排序,有的场景下会需要排好序之后复制粘贴出表格,直接转换的话就是没有排序的了

@Vanessa219
Copy link
Member Author

Vanessa219 commented Nov 3, 2024

可以转换为不排序的或者是排序的嘛

@TCOTC
Copy link
Contributor

TCOTC commented Nov 3, 2024

一个数据库有多个视图,每个视图排序都不同的话交互会更麻烦,还是复制单元格粘贴符合直觉。

你看 Wolai 这个交互就很丝滑:

video.webm

@TCOTC
Copy link
Contributor

TCOTC commented Nov 3, 2024

由于和 notion 设计不同,选中后都会标记当前光标位置,第一点就不进行修改了。

如果用户选中单元格,那就是要对单元格进行操作,为什么还要光标?

@Vanessa219
Copy link
Member Author

目前数据库复制粘贴后是文本,可以看一下大家是否需要粘贴为表格。
选中块对块操作也是有光标的,保持一致的设计。

@TCOTC
Copy link
Contributor

TCOTC commented Nov 4, 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