希望能对主题页以及bullet增加锁定功能!!!因为在PC上打开RE,很容易就会被路过的人不经意看到,我实在担心我不在电脑前的时候,某些比较私密的信息被别人打开看到!如果可以加上输入私人密码才能打开主题或者bullet的功能,我还可以把日记的部分也搬上来了。强烈祈愿中。。。
简单加密效果:
https://roamedit.com/share?ky=u47E-sz0uhlxB
//简单加密 pluginManager.register("simpleEncrypt", { after_nodemenu_run() { plugin.menu.addItems("node", { simpleEncrypt: { label() { return this.nv.data.simpleEncrypt? "简单解密" : "简单加密"; }, icon: "key", action() { this.nv.data.simpleEncrypt = !this.nv.data.simpleEncrypt; this.nv.$node.find(".node").andSelf().each(function() { this.nv.$node.removeAttr("simpleEncrypt"); this.nv.$text.attr("contenteditable", true); this.nv.reparse(1); }); } } }); }, encrypt(nv) { if (nv.data.simpleEncrypt || nv.$node.is("[simpleEncrypt] .node")) { nv.$text.removeAttr("contenteditable"); nv.$node.attr("simpleEncrypt", true); return nv.textDom.innerHTML = "*".repeat(Math.min(70, nv.data.ori.length)); } }, after_nodeView_parseOriText(nv) { return this.encrypt(nv); }, async_nodeView_mount(nv) { this.encrypt(nv); } });
在代码块里安装这个JS插件,或者添加到偏好设置/自定义JS里
Hardy 简单加密效果:https://roamedit.com/share?ky=u47E-sz0uhlxB//简单加密 pluginManager.register("simpleEnc ...
Hardy 先应付着用吧,这功能本来不在近期支持计划的哈,只是顺手写了个简单的,避免你所说场景的尴尬