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

优化冒号后自动弹出 emoji 选择框的场景 #3223

Closed
2016201256 opened this issue Oct 21, 2021 · 4 comments
Closed

优化冒号后自动弹出 emoji 选择框的场景 #3223

2016201256 opened this issue Oct 21, 2021 · 4 comments
Assignees
Milestone

Comments

@2016201256
Copy link

In what scenarios do you need this function?

冒号是常用的标点符号, 在绝大多数情况下输入冒号是作为标点符号使用而不是想输入emoji, 每次输入冒号都弹出emoji选择框很干扰体验, 并且在冒号后直接按回车键会输入第一个emoji而不是换行.

Describe the optimal solution

提供选项关闭冒号呼出emoji的功能, 使冒号能仅仅作为普通标点符号使用

Describe the candidate solution

Other information

@88250 88250 changed the title 关闭冒号之后自动弹出emoji选择框 关闭冒号之后自动弹出 emoji 选择框 Oct 21, 2021
@88250 88250 added this to the 1.5.1 milestone Oct 21, 2021
@88250
Copy link
Member

88250 commented Oct 21, 2021

感谢反馈,还需要考虑一下替代方式,比如类似 wolai 使用双 :: 或者仅支持通过斜杆菜单 #3224

@Elliootalderson
Copy link

::是不错的选择,斜杆菜单有些太慢太麻烦了

@88250
Copy link
Member

88250 commented Nov 9, 2021

感觉 Notion 的逻辑也很好:输入 : 后不展现菜单,紧跟输入的话出现筛选。

因为在英文排版中,标点符号后面需要跟一个空格,这个空格刚好可以避免出现不必要的 Emoji 筛选菜单。

@Vanessa219

@Vanessa219
Copy link
Member

Vanessa219 commented Nov 10, 2021

仅在输入冒号后才会弹出 emoji 面板,以下情况不再弹出

  1. 按 esc
  2. 冒号前为数字
  3. 鼠标点击过编辑器后

@Vanessa219 Vanessa219 changed the title 关闭冒号之后自动弹出 emoji 选择框 优化冒号后自动弹出 emoji 选择框的场景 Nov 10, 2021
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

4 participants