-
编辑器光标移动定位问题,句中光标无法快速定位到句头,局尾等
2023-11-09 21:14光标子中间的时候,快速新起一行
Ctrl+Shift+A 在下方新建一行,Ctrl+Shift+B 在上方新建一行
光标在句子中间的时候,快速把光标移动到句子末尾,句子开头
用 Home 键 和 End 键可以移动到该行的首尾,差不多
跨块进行加速 Ctrl+B 加粗操作
这个会有,得再等等
总的来说好像没啥问题,你可以说说更具体的使用场景
-
在思源笔记中实现渐进阅读
2023-11-05 01:17大 D 和 V 姐的更新速度能让欧洲程序员知道什么叫“中国速度”。
我现在习惯了国人的软件开发速度,用外国的软件几个月都不更新一次还感觉挺别扭 😂
-
求一条查询含有当前日期的 SQL,谢谢
2023-11-05 00:13把解压后的模板文件放到工作空间
\data\templates
的目录下使用这个模板会产生一个嵌入块
这个模板文件的内容是
{{select * from blocks where content like '%.action{ now | date "2006-01-02" }%'}} {: id="20231105000746-1hfiaai"}
p.s. 我没学过 SQL,但会做一点模板
-
【需求】挖空依次显示
2023-11-04 21:30只在闪卡界面生效:
/* 闪卡的标记转挖空 CSS片段 */ .card__block .b3-typography [data-type~="mark"], .card__block .protyle-wysiwyg [data-type~="mark"] { color: transparent !important; padding: 0px 5px 0px 5px; background-color: transparent !important; background-image: none !important; border-bottom: 0.1em solid var(--b3-theme-on-background) !important; transition: all 300ms; } .card__block .b3-typography [data-type~="mark"]:hover, .card__block .protyle-wysiwyg [data-type~="mark"]:hover, .card__block .p.block-focus [data-type~="mark"] { color: var(--b3-theme-on-background) !important; transition: all 300ms; padding: 0px 5px 0px 5px; }
-
导航栏单击打开文档、双击展开子文档
2023-11-04 19:04第 1、3 条合并:点除图标外任意位置,打开该文档,同时在文档树中展开子文档
那你怎么翻目录?翻一下目录就会打开一堆文档
不如用这个代码片段,用中键展开子文档
/* 中键点击展开文档树 JS片段 */ (function(){ let g_reset = setInterval(main, 2000); function main() { if (document.querySelector('.sy__file')) { clearInterval(g_reset); }else{ return false; } document.querySelector('.sy__file').addEventListener('mousedown', event => { if (event.button != 1) return; let notTitleFlag = false; if (!event.target.classList.contains('b3-list-item__text')) notTitleFlag = true; let target = event.target.parentNode; let temp = event.target; console.log("0426",event); for (let i = 0; i < 4 && temp; i++) { if (temp?.getAttribute("data-type") == "navigation-file" || temp?.getAttribute("data-type") == "navigation-root") { target = temp; break; } temp = temp?.parentNode; } console.log("0426target", target); if (target?.getAttribute("data-type") == "navigation-file" || target?.getAttribute("data-type") == "navigation-root") { const b3ListItemToggle = target.querySelector('.b3-list-item__toggle'); const title = target.querySelector('.b3-list-item__text'); if (b3ListItemToggle.classList.contains('fn__hidden')) return; event.preventDefault(); b3ListItemToggle.click(); if (event.ctrlKey) { title.click(); } } }, true); } })();