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

使用 ctrl 按键区分 database 两种主键点击 #10053

Closed
zxhd863943427 opened this issue Jan 2, 2024 · 3 comments
Closed

使用 ctrl 按键区分 database 两种主键点击 #10053

zxhd863943427 opened this issue Jan 2, 2024 · 3 comments

Comments

@zxhd863943427
Copy link
Contributor

zxhd863943427 commented Jan 2, 2024

In what scenarios do you need this feature?

目前database新建文档和打开文档的方式依然有一些繁琐,且逻辑不统一。归根结底,是我们希望 '更多' 这个位置所在的按钮能够承担多种功能:新建文档、打开文档、绑定到现有文档、更新绑定文档,这导致在使用一种方案实现所有操作的情况下会显得操作繁琐。

但是,这多种功能可以归类为两种要求:

  1. 打开绑定的文档,假如原来没有绑定就新建一个同名文档并打开
  2. 更新绑定的文档,假如原来没有绑定就新增绑定。

因此,只需要使用 ctrl 按键来辅助区分两种功能,那么就可以简化操作,统一操作逻辑。

Describe the optimal solution

使用 ctrl 按键来辅助区分两种功能,假设把点击设定为第一种功能,ctrl+点击设定为第二种功能,那么需要实现下面的操作:

  1. 直接点击按钮,假如已经绑定到块就直接打开块,没有就新建子文档后打开文档。
  2. ctrl+点击按钮,假如未绑定到块就进行绑定,已有绑定就更新绑定。

Describe the candidate solution

No response

Other information

这个逻辑可能在移动端比较难实现,因为移动端没有ctrl按键。

这个方案实行后,可以考虑:

  1. 移动端保留原种效果
  2. 移动端使用长按实现更新绑定功能
  3. 移动端的database菜单增加选项,可以从菜单中更新绑定
  4. 移动端放弃更新绑定功能,让其使用电脑端完成操作。
@zxhd863943427
Copy link
Contributor Author

另外,假如实现了这个需求,那可以考虑使用一个 icon 图标统一替代掉 更多更新 这些文本内容。

@88250
Copy link
Member

88250 commented Jan 7, 2024

关联社区投票贴 https://ld246.com/article/1704187613018

@88250
Copy link
Member

88250 commented Jan 12, 2024

考虑后决定不改变交互了,谢谢。

@88250 88250 closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants