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

Support cross-block selection of some inline elements and then settings #8554

Open
3 tasks done
Trishul117 opened this issue Jun 15, 2023 · 11 comments
Open
3 tasks done
Assignees
Milestone

Comments

@Trishul117
Copy link

Trishul117 commented Jun 15, 2023

Unable to bold/italalicize multiple blocks at the same time by selecting them

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

It should be possible to bold/italicize multiple blocks (multiple bullet points for example) at the same time by selecting them. Individual block/bullet-point needs to be selected at a time to apply bold/italics right now, which is really inefficient.

Expected result

It should be possible to bold/italicize multiple blocks (multiple bullet points for example) at the same time by selecting them.

Screenshot or screen recording presentation

No response

Version environment

- Version: v2.9.1
- Operating System: Windows 10
- Browser (if used): Nil

Log file

Nil

More information

No response

@88250
Copy link
Member

88250 commented Jun 16, 2023

Ref #8298

@mozhux
Copy link

mozhux commented Nov 8, 2023

支持一下,这个是体验的大提升,对标notion那个程度就好咯

@88250 88250 added this to the 2.10.15 milestone Nov 8, 2023
@88250 88250 changed the title Unable to bold/italalicize multiple blocks at the same time by selecting them Support setting block font after multiple selection blocks Nov 8, 2023
@Vanessa219
Copy link
Member

Vanessa219 commented Nov 9, 2023

由于目前无法跨块选择文本,现在就会涉及到两个问题:

  1. 选中多个块后,在块上直接加粗。这样会和行内元素的粗体不一致。
  2. 选中多个块后,将块内文本加粗,等同在块上 ctrl+a 后 ctrl+b。这个交互没想好,如果弹出行内元素的菜单会比较奇怪,毕竟没有选中文本;如果使用块菜单的话也比较奇怪,粗体并没有作用在块上。

@88250 88250 pinned this issue Nov 9, 2023
@88250 88250 removed this from the 2.10.15 milestone Nov 9, 2023
@mozhux
Copy link

mozhux commented Nov 9, 2023

目前wolai、flowus的选中也是只有加粗这种。notion则进一步支持了跨块选择文本,如果能进一步支持这个更好了。

@Aiviokoo
Copy link

Aiviokoo commented Dec 20, 2023

由于目前无法跨块选择文本,现在就会涉及到两个问题:

  1. 选中多个块后,在块上直接加粗。这样会和行内元素的粗体不一致。
  2. 选中多个块后,将块内文本加粗,等同在块上 ctrl+a 后 ctrl+b。这个交互没想好,如果弹出行内元素的菜单会比较奇怪,毕竟没有选中文本;如果使用块菜单的话也比较奇怪,粗体并没有作用在块上。

首先是支持方案 2 的,统一非常重要。
目前在思源里跨块选中文字就像有魔力一样,常规的跨块选中只能一次性选中好几个块的全部内容,而不能同时只选中跨块的部分文字,除非用之前 z 佬提的那个 卡 bug 的方法。鉴于后面这个可能难以实现,暂时放弃认为能达到这种效果,只认为能批量改变多个块的所有内容的样式就够了。
目前跨块框选后是不弹任何菜单的,我看了下 notion 的它由于能达到后面那种理想效果,他是直接弹的行内元素菜单,思源这样做确实会像 V 姐说的感觉有点怪。(虽然我个人还是能接受的)
目前我想到的是这样(但是我觉得还不如上面的直接弹行内元素菜单):选中后右键非块标区域弹行内元素菜单,选中后右键块标区域弹块转换等现有的右键菜单。这个唯一就是保证了和现在一样框选后未按键没有弹窗看着简洁一点,其他没啥大用,还让块的改变更不便了,我都不大想。
还有一种方法就是在块级菜单处添加一个行级元素样式的小菜单(套娃),简洁基本保住了,好处也不太明显,还容易让用户觉得有点小乱。比如这个图片中的 文字样式 到底该在哪一排,又需要很大的抉择了。
FullSizeRender

目前来看相对最完美的方法还是类似 notion ,可惜太难了。

@88250 88250 changed the title Support setting block font after multiple selection blocks Support cross-block selection of some inline elements and then settings Dec 20, 2023
@88250 88250 added this to the backlog milestone Dec 20, 2023
@kylehz
Copy link

kylehz commented Dec 27, 2023

希望能支持,很需要

@kylehz
Copy link

kylehz commented Dec 27, 2023

能支持加粗就行了

@ccaobtbbs123
Copy link

另外请考虑一下选中多个单元格的情况,有时也需要多选进行粗体、删除、标注等的。

像多个块的情况下选中右键弹出的外观选项中,增加一项行内元素修改,类似这样的话是否可行呢?
image

@zhuxiucai
Copy link

请支持这个需求,很常见。

最明显的情况就是 复制进来的文本全是加粗的,一段段调整,太崩溃了。

@gingde
Copy link

gingde commented Feb 29, 2024

ESC选中当前块之后,无法进行加粗
同时选择多个块之后,也无法进行加粗,取消加粗的操作。
只能在一个块里面用光标选中之后才能进行加粗,或者取消加粗的操作。
这个实在是太不合理了,要知道,大部分人使用习惯都是从Word类的使用习惯迁移过来的,连Word 印象笔记这类古早的笔记都能正常使用的操作,在先进的思源笔记里面居然是一个老大难。实在是令人感到非常不适。
当我们把一切其他的文本复制到思源【比如一个一个课程文稿,比如一个小说,很多都是转码的情况,格式不是非常标准】,想要在思源里面进行阅读,进行双向链接进行思考,必然涉及到一些格式的调整。加粗,加亮等情况。【这里希望思源笔记针对复制文本的格式识别能强一点,如果有多种选择就好了】
而现在很难支持调整,要一个个块一个个去修改,实在是没有操作体验。

bandicam.2024-02-29.10-11-46-152.mp4

我每次用着用着就烦。
无法跨块进行操作实在是 非常非常影响体验。
不知什么时候能给个差不多的解决方式

@tcmtom
Copy link

tcmtom commented Apr 14, 2024

https://ld246.com/article/1712854745640

这里面提出了实现该功能的一点方法,可以参考

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

10 participants