-
思源笔记 3.1.6 新增 webdav 求解惑
2024-09-18 01:28新建工作空间,不鉴权可以挂载,添加访问授权码就是 401
听起来是正常的。如果没有设置访问授权码,在同一个设备上访问 webdav 不需要鉴权
-
希望标题配色可以适配【自定义块样式】插件
2024-09-18 00:59.protyle-wysiwyg .h1 { color: #d40045; } .protyle-wysiwyg .h2 { color: #ff7f00; } .protyle-wysiwyg .h3 { color: #66b82b; } .protyle-wysiwyg .h4 { color: #093f86; } .protyle-wysiwyg .h5 { color: #340c81; } -
关于编辑器里评论功能会消失的疑问?
2024-09-17 10:18我换了主题,关闭了所有插件
一般要重启一下思源才能完全生效的。
“评论”是主题或插件的功能,如果你需要稳定使用的话请将问题反馈到对应的仓库。
-
搜索能不能从结果当中批量选择?
2024-09-16 16:19我估计没有很好的办法了。
我想到的是这样的流程,但估计也差不多:
- 使用 文档高亮搜索 插件,在某个页签中搜索关键词
- 目测查找需要移动的块
- 多选迁移
-
当代码块行数过多时,Ctrl+P 搜索到之后点击进去会跳到第一行,还得自己寻找半天
2024-09-16 10:53 -
剪藏扩展好像不太好用
2024-09-16 08:55剪藏速度太慢了,一点点的遍历整个页面?这个时候不知道能不能操作……操作会影响剪藏吗?
这是为了保证网页中的图片完整加载出来,这个时候不要操作。
最终结果只有……Clipping, please wait a moment...
遇到这种情况可以即时反馈,这是需要单独适配的。
关联 Issue #12495 · siyuan-note/siyuan
划线的那行标题,似乎有些重复了……
因为文档标题是会改动的,所以在文档内保留一个原网页标题
-
[js] 全屏和刷新按钮、右上角倒计时
2024-09-16 00:18改了一下倒计时,可以在默认主题中使用:

// 顶栏倒计时 JS片段 https://ld246.com/article/1726411686880 // 设置文本内容和目标日期 const countdownMessage = "距离十月剩余 ${daysLeft} 天"; const targetDateString = '2024-10-1'; const targetDate = new Date(targetDateString); function startCountdown(targetDate) { // 计算剩余天数的函数 function calculateDaysLeft() { let currentDate = new Date(); let differenceInTime = targetDate.getTime() - currentDate.getTime(); let daysLeft = Math.ceil(differenceInTime / (1000 * 3600 * 24) - 1); // 将时间差转换为天数;不计入当天所以 -1 return daysLeft; } // 更新倒计时显示 function updateCountdown() { let daysLeft = calculateDaysLeft(); let countdownElement = document.getElementById("countdown_days_display"); if (countdownElement) { countdownElement.innerText = countdownMessage.replace('${daysLeft}', daysLeft); } else { console.warn("找不到 countdown_days_display 元素"); } } // 首次插入倒计时显示元素到 #toolbar > #drag 元素旁边 function insertCountdownElement() { let toolbarDrag = document.querySelector('#toolbar > #drag'); if (toolbarDrag) { toolbarDrag.insertAdjacentHTML( "afterend", `<div id="countdown_days_display" style="font-size: 12px; color: var(--b3-toolbar-color); margin-right: 14px; user-select:none;"></div>` ); updateCountdown(); // 插入后立即更新显示 } else { console.error("找不到 #toolbar > #drag 元素"); } } // 每隔1分钟检测倒计时元素是否存在 let checkInterval = setInterval(() => { let countdownElement = document.getElementById("countdown_days_display"); // 如果倒计时元素不存在,则重新插入 if (!countdownElement) { insertCountdownElement(); console.log("倒计时元素不存在,重新插入"); } else { console.log("倒计时元素已存在,停止检测"); clearInterval(checkInterval); // 如果找到了元素,停止检测 } }, 60 * 1000); // 每1分钟检测一次 // 立即插入倒计时显示元素,并在1分钟后开始定时更新 insertCountdownElement(); // 立即插入元素 setInterval(updateCountdown, 60 * 1000); // 每60秒更新一次(1分钟) } // 启动倒计时功能 startCountdown(targetDate);
真的方便,我怎么想不到。

-
可以用 bat 命令行打包和备份工作区 /data 文件夹吗?
2024-09-15 22:39恢复的时候直接覆盖的话我感觉思源应该没有索引,有可能产生一点问题,不过恢复之后手动在思源里重建索引就完全 OK 了。





