Skip to content

Shift+Enter does not work properly in inline elements #11766

Closed
@TCOTC

Description

@TCOTC

块引用前使用 Shift+Enter 异常

正常情况按两下 Shift+Enter 应该是会新建块的,但在块引用前无效:

default.webm

Activity

self-assigned this
on Jun 20, 2024
added a commit that references this issue on Jun 20, 2024
added this to the 3.1.0 milestone on Jun 20, 2024
Vanessa219

Vanessa219 commented on Jun 20, 2024

@Vanessa219
Member

@88250 在块引用内连续 shift+enter 会出现标签

changed the title [-]块引用前使用 `Shift+Enter` 异常[/-] [+]`Shift+Enter` does not work properly in inline elements[/+] on Jun 20, 2024
88250

88250 commented on Jun 20, 2024

@88250
Member

调整为行级元素内部最多只能加一个 \n

TCOTC

TCOTC commented on Jun 20, 2024

@TCOTC
ContributorAuthor

@88250 改动之后还能按两下 Shift+Enter 新建段落块吗?

88250

88250 commented on Jun 20, 2024

@88250
Member

纯文本行级元素可以,其他行级元素不行,只能有一个换行。

TCOTC

TCOTC commented on Jun 20, 2024

@TCOTC
ContributorAuthor

是这个意思吗:

1111111111\n1111111111
2222222**222\n222**2222222

image

88250

88250 commented on Jun 20, 2024

@88250
Member

是的

4 remaining items

TCOTC

TCOTC commented on Jun 23, 2024

@TCOTC
ContributorAuthor

@88250 看看上面这条。

还有行级元素能处理的话我觉得还是尽量处理,让 Shift+Enter 的行为保持一致

88250

88250 commented on Jun 23, 2024

@88250
Member

@Vanessa219 看一下

Vanessa219

Vanessa219 commented on Jun 24, 2024

@Vanessa219
Member

行内元素要和段落元素保持一致的话,@88250 这边看看能不能实现?

如果按两次 Shift+Enter 就可以新建一个块了的话,用户就没有办法在一个块下面多次 Shift+Enter 空很多行了。

TCOTC

TCOTC commented on Jun 24, 2024

@TCOTC
ContributorAuthor

用户就没有办法在一个块下面多次 Shift+Enter 空很多行了

思源本来就不支持吧

default.webm
Vanessa219

Vanessa219 commented on Jun 25, 2024

@Vanessa219
Member

shift+enter 不要输入字符

TCOTC

TCOTC commented on Jun 25, 2024

@TCOTC
ContributorAuthor

但是不输入字符的话 Shift+Enter 有啥意义呢

Vanessa219

Vanessa219 commented on Jun 26, 2024

@Vanessa219
Member

这个 markdown 规范本来是不支持的,但是有用户需要使用同一个块进行留白,后面才添加的。

TCOTC

TCOTC commented on Jun 27, 2024

@TCOTC
ContributorAuthor

我怎么想都感觉怪怪的。现在还能找到那个用户反馈吗?我想看看是个什么需求

Vanessa219

Vanessa219 commented on Jun 28, 2024

@Vanessa219
Member

就用来分割,没啥奇怪的。这个太早了,你看看能不能搜到。

TCOTC

TCOTC commented on Jul 3, 2024

@TCOTC
ContributorAuthor

@Vanessa219 这样有个问题是,用 Enter 或 Shift+Enter 都无法在列表中直接新建空行,必须先写点东西之后才能在两个块之间按 Enter 新建空行:

default.webm

我建议把这个无限软回车的特性改掉

Vanessa219

Vanessa219 commented on Jul 3, 2024

@Vanessa219
Member

这个 markdown 规范本来是不支持的,但是有用户需要使用同一个块进行留白,后面才添加的。

使用这个就可以了,先在 2 后面 shift+enter,然后在 ctrl+shift+a

TCOTC

TCOTC commented on Jul 3, 2024

@TCOTC
ContributorAuthor

这个快捷键感觉不是很方便呐

Vanessa219

Vanessa219 commented on Jul 25, 2024

@Vanessa219
Member

可以自定义嘛

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        `Shift+Enter` does not work properly in inline elements · Issue #11766 · siyuan-note/siyuan