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

After using The name of the new subdocument is by F3 in an empty block, it will no longer automatically select all #8099

Closed
3 tasks done
iamqiz opened this issue Apr 25, 2023 · 8 comments
Assignees
Milestone

Comments

@iamqiz
Copy link
Contributor

iamqiz commented Apr 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

  1. 如果使用快捷键"新建子文档名为"时,当前行是空段落,那么在创建完引用时会选中当前文档所有块

Snipaste_环境返回_2023-04-25__09-43-02

  1. 如果创建的子文档已经存在,那么会使用那个文档,而不是创建新的同名文档 ,即便是未命名文档 (Untitled),也会如此

建议: 如果同名子文档已经存在,则询问用户是使用已存在的,还是创建新的

两个子文档同名的场景举例:
一个文档有两个公式, 这两个公式各自都有一个对应的 "推导" 文档,

Expected result

`

Screenshot or screen recording presentation

No response

Version environment

`

Log file

`

More information

`

@88250
Copy link
Member

88250 commented Apr 28, 2023

第一点问题稍后改进,第二点不考虑了,还是遵循优先沿用同名的规则。

@88250 88250 added this to the 2.8.7 milestone Apr 28, 2023
@88250 88250 changed the title "新建子文档名为" 时的问题 After using The name of the new subdocument is by F3 in an empty block, it will no longer automatically select all Apr 28, 2023
@iamqiz
Copy link
Contributor Author

iamqiz commented Apr 28, 2023

第二点 手动创建时,是可以创建多个同名文档的(包括自定义名字和未命名),如下图

Snipaste_环境返回_2023-04-28__18-29-01

那通过快捷键创建也不应该强制同名哇

@88250
Copy link
Member

88250 commented Apr 28, 2023

F3 的沿用同名比较方便,不然每次遇到要引用的子文档会新建不同的文档不符合设计。

@iamqiz
Copy link
Contributor Author

iamqiz commented Apr 28, 2023

引用同名文档,首选应该用 [[ 符号哇,如果没有同名文档,它还会提示创建新文档,
Snipaste_环境返回_2023-04-28__20-20-46

但使用F3,如果想创建同名的新文档咋办?

最好的方法就是 灵活处理:

建议: 如果同名子文档已经存在,则询问用户是使用已存在的,还是创建新的

@88250
Copy link
Member

88250 commented Apr 28, 2023

我指的是选择文本以后按 F3 的情况沿用同名,这样方便标记。

@iamqiz
Copy link
Contributor Author

iamqiz commented Apr 28, 2023

那不选中时, 出现同名, 是弹窗让用户选择,还是一律创建新的?

@88250
Copy link
Member

88250 commented Apr 28, 2023

建新的吧

@iamqiz
Copy link
Contributor Author

iamqiz commented Apr 28, 2023

建新的吧

可以 不错

Vanessa219 added a commit that referenced this issue May 1, 2023
Vanessa219 added a commit that referenced this issue May 1, 2023
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