siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
22.66k stars 1.6k forks source link

Improve Shift+↑/↓ selection #11671

Closed allrobot closed 4 months ago

allrobot commented 5 months ago

代码块内部shift+↑无法选中上一行,而是选中整个代码块

Is there an existing issue for this?

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

Could the issue be due to extensions?

Describe the problem

看图,已关闭所有插件仍然引发该问题

Expected result

shift无法选中一行代码,思源给选中该块了,俺寻思之前应该是正常选代码块里面的一行,不应该是全选的

Screenshot or screen recording presentation

SiYuan_jSikJWA3aa

Version environment

- Version: latest
- Operating System: win10
- Browser (if used):

Log file

siyuan.log

More information

No response

allrobot commented 5 months ago

SiYuan_Iqxt6DmSXp

Vanessa219 commented 5 months ago

md 中没有 kbd 的语法,没有的话都会使用标签。

TCOTC commented 5 months ago

但问题不是没粘贴出来吗?

88250 commented 5 months ago

@allrobot 上次处理的是 code 元素 https://github.com/siyuan-note/siyuan/issues/11401 ,这次处理 kbd

TCOTC commented 5 months ago

这还是单独处理的吗?为什么不同时处理所有的行级元素呢?

88250 commented 5 months ago

嗯,我就是这个意思,刚刚没打全 😂

allrobot commented 5 months ago

md 中没有 kbd 的语法,没有的话都会使用标签。

@allrobot 上次处理的是 code 元素 #11401 ,这次处理 kbd

主要问题是历史剪切板的内容无法黏贴为MD格式,建议测一下所有的MD语法是不是都无法黏贴

88250 commented 5 months ago

已经单独开 Issue 处理了

---Original--- From: @.> Date: Mon, Jun 17, 2024 17:31 PM To: @.>; Cc: @.**@.>; Subject: Re: [siyuan-note/siyuan] Improve Shift+↑/↓ selection (Issue #11671)

md 中没有 kbd 的语法,没有的话都会使用标签。

@allrobot 上次处理的是 code 元素 #11401 ,这次处理 kbd

主要问题是历史剪切板的内容无法黏贴为MD格式,建议测一下所有的MD语法是不是都无法黏贴

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

allrobot commented 4 months ago

为何在选取文本时,无论是普通文本还是代码块,使用“Shift+↑/↓”组合键都是全选的,而非仅选择光标上/下的普通文本?😅

SiYuan_n6XQiWO6eX

TCOTC commented 4 months ago

使用 “Shift+↑/↓” 组合键都是全选的

@allrobot 我觉得你用的不是最新的版本 v3.1.0-dev3 ,我这里已经没这个问题了

allrobot commented 4 months ago

噢,我是3.0.17版本的(你写的3.1.0,实际里面eve为3.0.17版本)

siyuan-v202406151744-win.exe存在shift+上/下就全选的问题

在 2024-06-20 13:49:57,"Jeffrey Chen" @.***> 写道:

@allrobot 我觉得你用的不是最新的版本 v3.1.0-dev3

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

88250 commented 4 months ago

@allrobot 试下打开开发者工具,Network 里面禁用缓存然后 Ctrl+R 刷新后再试试

allrobot commented 4 months ago

@allrobot 试下打开开发者工具,Network 里面禁用缓存然后 Ctrl+R 刷新后再试试

https://github.com/siyuan-note/siyuan/assets/43485379/c8f8fc94-0dc8-481a-a580-793256138a2e

TCOTC commented 4 months ago

@allrobot 在开发者工具里 Ctrl+R 重载整个界面再看看

allrobot commented 4 months ago

@allrobot 在开发者工具里 Ctrl+R 重载整个界面再看看

快捷键找了下,siyuan重载快捷键是ctrl+shift+r,开发者工具是ctrl+r

重载了还是全选

TCOTC commented 4 months ago

@allrobot 文档导出为 .sy.zip 上传一下,我这边试试

allrobot commented 4 months ago

@allrobot 文档导出为 .sy.zip 上传一下,我这边试试

av1an文档.sy.zip

TCOTC commented 4 months ago

很难说你那里是什么情况,我这里挺正常:

GIF

allrobot commented 4 months ago

该issue未得到修复,需open issue

TCOTC commented 4 months ago

@allrobot 真的确认是最新的 dev 版吗?安装昨天发布的 dev 版再试试?

allrobot commented 4 months ago

@allrobot 真的确认是最新的 dev 版吗?安装昨天发布的 dev 版再试试?

安装了,还是不太行,普通块和代码块光标位置如果是末尾,向上会全选的 keycastow_dG6N0KOPMY

普通块 keycastow_FzjdqLHT08

TCOTC commented 4 months ago

@Vanessa219 Shift+↓ 是正常的,Shift+↑ 有点问题:

视频.webm

Vanessa219 commented 4 months ago

Mac 下无法重现, @88250 Windows 下看一下。

TCOTC commented 4 months ago

@88250 现在 Shift+↓ 也有问题了:

视频.webm

88250 commented 4 months ago

@TCOTC @Vanessa219 我这里段落块中 Shift+↓ 没有问题,Shift+↑ 有问题;但在代码块中,↑/↓ 都有问题。

TCOTC commented 4 months ago

这怎么做到在每台设备上的表现不同的

88250 commented 4 months ago

估计是浏览器实现不太一致

---Original--- From: "Jeffrey @.> Date: Sun, Jun 23, 2024 11:23 AM To: @.>; Cc: @.>;"State @.>; Subject: Re: [siyuan-note/siyuan] Improve Shift+↑/↓ selection (Issue #11671)

这怎么做到在每台设备上的表现不同的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

Vanessa219 commented 4 months ago

还麻烦再看看