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

[wysiwyg] 在代码块尾部按 arrowdown 插入空行 #386

Closed
gclove opened this issue May 10, 2020 · 8 comments
Closed

[wysiwyg] 在代码块尾部按 arrowdown 插入空行 #386

gclove opened this issue May 10, 2020 · 8 comments
Assignees
Milestone

Comments

@gclove
Copy link

gclove commented May 10, 2020

编辑模式

所见即所得模式

描述问题

当插入一个代码块后,没有好办法另起一行

期待的结果

当通过 ```,或快捷键 或 按钮, 自动插入代码块时。应该在后面新增一个空行。

@Vanessa219
Copy link
Owner

Vanessa219 commented May 10, 2020

你可以使用快捷键或点击工具栏上的按钮,或使用 ir 模式。或者提供向 ir 模式那样使用 arrowdown,自动添加一行会更好?

image

@gclove
Copy link
Author

gclove commented May 10, 2020

@Vanessa219

  1. 如果自动加一个空行的话,代码输入完成后按 就能开始其它内容 . 感觉更方便一些

  2. 这个快捷键会跟搜狗输入法的中英文切换冲突 , Command + Enter Shift+Enter 做此处的新行快捷键会更好

image

@gclove
Copy link
Author

gclove commented May 10, 2020

我刚试了一下 Typora , 它好像就是采用自动插入新行解决这个问题的 @Vanessa219

@Vanessa219
Copy link
Owner

那就采取这个吧

如果自动加一个空行的话,代码输入完成后按 ↓ 就能开始其它内容 . 感觉更方便一些

Command + Enter 一般用于提交,Shift+Enter 一般用于软换行,因此不太适合。输入法切换不是按 caps lock么,要不重新设置一个快捷键?

@Vanessa219 Vanessa219 changed the title 插入代码块后,无法移动光标到下一行 [wysiwyg] 在代码块尾部按 arrowdown 插入空行 May 10, 2020
@Vanessa219 Vanessa219 self-assigned this May 10, 2020
@Vanessa219 Vanessa219 added this to the 3.2.0 milestone May 10, 2020
@gclove
Copy link
Author

gclove commented May 10, 2020

🥰 非常感谢 @Vanessa219

才插入空行在编辑之前的代码块时会不会遇到问题,最好在生成代码块样式的时候就插入新行

类似这样

2020-05-10

@Vanessa219
Copy link
Owner

你可以体验一下 ir 模式。生成的时候就插入,如果代码块下面本身有内容可能差个空行会不太好。

@jakekwak
Copy link
Contributor

If possible, when touched outside(below pane) of block(no text below current block), insert after block.
It means we can remove the two icon at toolbar. (much easier UI at smartphone)

@Vanessa219
Copy link
Owner

If possible, when touched outside(below pane) of block(no text below current block), insert after block.
It means we can remove the two icon at toolbar. (much easier UI at smartphone)

#396

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