-
请问有没有办法快速复制某个特定标题下的内容?
2025-05-06 23:38看了一下确实这个功能目前不支持复制 Markdown Issue #12227 · siyuan-note/siyuan
预览和只读的时候直接跨块选中文本复制就行了
-
SQL 求助:在任务列表项写上日期,例如 2024-09-30,到了这天时索引出来
2025-05-06 22:09* [ ]需要更新为- [ ]、* [x]需要更新为- [x],工作空间需要重建索引 -
停更新功能了吗?
2025-05-06 21:13 -
建议在图片的右键菜单新增一个彻底删除
2025-05-06 20:49隔一段时间清理一次未引用的资源就行了,不用强迫症
另外,如果有使用同步功能的话,这个需求是没什么意义的,因为文件已经上传了,要彻底删除只能清空快照
其他相关问题:
-
关于无序列表折叠的建议反馈
2025-05-06 16:21可以,比如:
.protyle-wysiwyg [data-node-id].li[fold="1"]>.protyle-action::after { background-color: #bbbbff; }
-
关于无序列表折叠的建议反馈
2025-05-06 15:02无序列表通过折叠按钮折叠后直接截断后面的文字,没有样式改变
有的,列表项的圆点会添加一个背景色,还是很明显的
思源:

幕布:

lg:

ob:

-
关于大纲的一些求助
2025-05-06 14:06JS 片段:
// 右键点击大纲标题展开或折叠 JS片段 (function () { document.addEventListener('contextmenu', function (event) { const outlineParent = event.target.closest('[data-treetype="outline"]'); if (outlineParent) { event.stopPropagation(); const toggle = outlineParent.querySelector(':scope > .b3-list-item__toggle:not(.fn__hidden)'); if (toggle) { toggle.click(); } } }, true); })(); -
思源笔记 html 运行错误,但在其他平台能正确运行
2025-05-06 00:00这东西写起来比较麻烦
<div> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>北京时间双十一倒计时</title> <style> body { display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; background: linear-gradient(135deg, #ff0036, #ff003690); font-family: "Microsoft Yahei", sans-serif; } .container { background: rgba(255,255,255,0.95); padding: 2rem 3rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center; } h1 { color: #ff0036; margin: 0 0 1rem; font-size: 2.2em; } #countdown { font-size: 4em; color: #ff0036; font-weight: bold; text-shadow: 2px 2px 5px rgba(0,0,0,0.1); } .unit { font-size: 1.2em; color: #666; margin-top: -10px; } </style> </head> <body> <div class="container"> <h1>双十一购物狂欢节倒计时</h1> <div id="countdown">0</div> <div class="unit">天</div> </div> <script> /* 使用括号划分一下作用域, 避免函数的重定义 */ { function getBeijingDayCount() { // 获取当前UTC时间并转换为北京时间(东八区) const now = new Date(); const utcNow = now.getTime() + (now.getTimezoneOffset() * 60000); const beijingNow = new Date(utcNow + (3600000 * 8)); // 创建今年双十一北京时间(11月11日 00:00:00) let targetYear = beijingNow.getFullYear(); let targetDate = Date.UTC(targetYear, 10, 11 - 1, 16); // 转换为UTC时间:11月10日16时(即北京时间11日0时) // 如果已过今年双十一,计算明年 if (beijingNow >= new Date(targetDate + 86400000)) { targetDate = Date.UTC(targetYear + 1, 10, 11 - 1, 16); } // 计算剩余天数(按完整自然日计算) const diff = targetDate - beijingNow.getTime(); return Math.floor(diff / 86400000); } function updateDisplay() { const days = getBeijingDayCount(); THIS.shadowRoot.getElementById('countdown').textContent = days; } const CUSTOM_ID = "E5C1EC9E30C14616A3569570281D2800"; /** * HTML 块中的脚本获取当前块相关信息 * @params {string} customID 内部定义的 ID * @returns {string} id 当前 HTML 块 ID * @returns {HTMLElement} block 当前 HTML 块 * @returns {HTMLElement} shadowRoot 当前 HTML 块 shadowRoot */ function This(customID) { let protyle = document.querySelector(`protyle-html[data-content*="${customID}"]`); if (protyle) { let block = protyle.parentElement.parentElement; return { id: block.dataset.nodeId, block: block, shadowRoot: protyle.shadowRoot, }; } else return null; } const THIS = This(CUSTOM_ID); if (THIS) { // 初始化并设置定时器 updateDisplay(); setInterval(updateDisplay, 60000); // 每分钟更新保证跨日准确 } else { console.error("Failed to find the current HTML block."); } } </script> </body> </div>效果:

-
笔记丢失求助
2025-05-05 23:20我较少将电脑上记的笔记同步过来
我电脑端上开的是启动和关闭同步
思源是快照式同步,以最新的快照为准,所有客户端同步时都会比较快照时间,使用最新的快照。
在一个客户端编辑完之后要同步到云端,然后在另一个客户端从云端同步数据下来,交替使用,不能两个客户端都编辑,否则会覆盖。
把需要编辑的客户端的同步都改成自动同步。
我回滚的笔记,图片怎么这样了
估计还是前面的同步之后数据覆盖造成的,在数据历史里找找看有没有对应的图片吧(可以复制文件名搜索)











