mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-09-11 05:03:46 +08:00
24 lines
19 KiB
JavaScript
24 lines
19 KiB
JavaScript
import{_ as n,C as p,c as o,o as d,j as a,at as l,a as s,G as t}from"./chunks/framework.abbEBnpT.js";const r="/assets/webdav.C-p_1YjK.webp",h="/assets/gi4.D7muLqv9.webp",c="/assets/gi5.2pdLYzLF.webp",F=JSON.parse('{"title":"使用指南","description":"","frontmatter":{"navbar":false,"sidebar":false,"aside":false},"headers":[],"relativePath":"project/ClipboardManager/guide/index.md","filePath":"project/ClipboardManager/guide/index.md","lastUpdated":1754111533000}'),u={name:"project/ClipboardManager/guide/index.md"},g={class:"table-of-contents"},k={href:"#webdav-使用指南"},b={href:"#高级搜索"},m={id:"webdav-使用指南",tabindex:"-1"},y={id:"高级搜索",tabindex:"-1"};function q(v,e,E,f,C,x){const i=p("Badge");return d(),o("div",null,[e[10]||(e[10]=a("h1",{id:"使用指南",tabindex:"-1"},[s("使用指南 "),a("a",{class:"header-anchor",href:"#使用指南","aria-label":'Permalink to "使用指南"'},"")],-1)),a("nav",g,[a("ul",null,[a("li",null,[a("a",k,[e[0]||(e[0]=s("WebDAV 使用指南 ",-1)),t(i,{type:"warning",text:"Pro"})])]),a("li",null,[a("a",b,[e[1]||(e[1]=s("高级搜索 ",-1)),t(i,{type:"warning",text:"Pro"})]),e[2]||(e[2]=a("ul",null,[a("li",null,[a("a",{href:"#基本语法"},"基本语法")]),a("li",null,[a("a",{href:"#组合搜索"},"组合搜索")]),a("li",null,[a("a",{href:"#实际使用场景"},"实际使用场景")]),a("li",null,[a("a",{href:"#搜索提示"},"搜索提示")])],-1))]),e[3]||(e[3]=a("li",null,[a("a",{href:"#如何创造自己的动作按钮"},"如何创造自己的动作按钮"),a("ul",null,[a("li",null,[a("a",{href:"#基础用法"},"基础用法")]),a("li",null,[a("a",{href:"#高级用例"},"高级用例")])])],-1))])]),a("h2",m,[e[4]||(e[4]=s("WebDAV 使用指南 ",-1)),t(i,{type:"warning",text:"Pro"}),e[5]||(e[5]=s()),e[6]||(e[6]=a("a",{class:"header-anchor",href:"#webdav-使用指南","aria-label":'Permalink to "WebDAV 使用指南 <Badge type="warning" text="Pro" />"'},"",-1))]),e[11]||(e[11]=l('<p>插件会员支持通过 WebDAV 将本地的剪贴板数据同步到云端,并在不同设备之间同步:</p><ol><li>获取 <code>服务器地址</code>、<code>账号</code>、<code>密钥</code>(如有)</li><li>在插件的 <code>首选项/网络</code> 中,开启 WebDAV 同步功能</li><li>在配置弹窗中填入上述信息,并点击测试连接</li><li>在测试连接成功后,点击保存配置,即可完成配置。</li></ol><p>在开启 WebDAV 同步功能后,插件的主面板下述变化:</p><ul><li>主面板下拉菜单中支持主动上传/主动下载数据;</li><li>主面板用户信息左侧的同步的状态指示灯用以显示当前的同步状态;</li></ul><p><img src="'+r+'" alt="WebDAV" loading="lazy"></p><p>此外,每次本地剪贴板内容发生变化,都会将最新数据同步到服务器。</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>注意,如果你同时在多台设备上使用超级剪贴板,并希望通过 WebDAV 同步不同设备上的数据</p><p>你需要在 <code>首选项/网络</code> 中按需配置 <code>自动下载</code>:</p><ul><li><strong>插件启动时</strong>:仅在插件首次启动时主动从 WebDAV 服务器下载数据。</li><li><strong>每次进入插件时</strong>:每次进入插件时都会主动从 WebDAV 服务器下载数据。</li></ul></div><p>相关链接:</p><ul><li><a href="https://infini-cloud.net/en/" target="_blank" rel="noreferrer">Infini Cloud</a> (国内可用 无限制)</li><li><a href="https://help.jianguoyun.com/?tag=webdav" target="_blank" rel="noreferrer">坚果云 WebDav</a>(国内可用 限制调用次数)</li><li><a href="https://www.zhihu.com/question/347182171" target="_blank" rel="noreferrer">2022年还有哪些支持WebDAV的网盘?</a></li></ul>',9)),a("h2",y,[e[7]||(e[7]=s("高级搜索 ",-1)),t(i,{type:"warning",text:"Pro"}),e[8]||(e[8]=s()),e[9]||(e[9]=a("a",{class:"header-anchor",href:"#高级搜索","aria-label":'Permalink to "高级搜索 <Badge type="warning" text="Pro" />"'},"",-1))]),e[12]||(e[12]=l(`<p>超级剪贴板自 <code>v2.9.1</code> 起,支持强大的高级搜索功能,让您能够精确地过滤和查找剪贴板历史记录。</p><h3 id="基本语法" tabindex="-1">基本语法 <a class="header-anchor" href="#基本语法" aria-label="Permalink to "基本语法""></a></h3><p>高级搜索使用特殊的语法格式:<code>关键词:值</code>,可以与普通文本搜索组合使用。</p><h4 id="_1-类型搜索-type" tabindex="-1">1. 类型搜索 (type) <a class="header-anchor" href="#_1-类型搜索-type" aria-label="Permalink to "1. 类型搜索 (type)""></a></h4><p>按剪贴板内容类型过滤:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>type:text # 只显示文本类型</span></span>
|
||
<span class="line"><span>type:image # 只显示图片类型 </span></span>
|
||
<span class="line"><span>type:file # 只显示文件类型</span></span>
|
||
<span class="line"><span>type:text,image # 显示文本和图片类型</span></span></code></pre></div><h4 id="_2-日期搜索-date" tabindex="-1">2. 日期搜索 (date) <a class="header-anchor" href="#_2-日期搜索-date" aria-label="Permalink to "2. 日期搜索 (date)""></a></h4><p>按特定日期过滤:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>date:2024-01-01 # 搜索2024年1月1日的条目</span></span>
|
||
<span class="line"><span>date:2024-01-01,2024-01-02 # 搜索多个特定日期的条目</span></span></code></pre></div><h4 id="_3-日期范围搜索-daterange" tabindex="-1">3. 日期范围搜索 (daterange) <a class="header-anchor" href="#_3-日期范围搜索-daterange" aria-label="Permalink to "3. 日期范围搜索 (daterange)""></a></h4><p>按日期范围过滤:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>daterange:2024-01-01~2024-01-31 # 搜索2024年1月份的条目</span></span>
|
||
<span class="line"><span>daterange:2024-01-01~2024-12-31 # 搜索2024年全年的条目</span></span></code></pre></div><h4 id="_4-收藏状态搜索-collect" tabindex="-1">4. 收藏状态搜索 (collect) <a class="header-anchor" href="#_4-收藏状态搜索-collect" aria-label="Permalink to "4. 收藏状态搜索 (collect)""></a></h4><p>按收藏状态过滤:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>collect:true # 只显示收藏的条目</span></span>
|
||
<span class="line"><span>collect:false # 只显示未收藏的条目</span></span></code></pre></div><h4 id="_5-置顶状态搜索-top" tabindex="-1">5. 置顶状态搜索 (top) <a class="header-anchor" href="#_5-置顶状态搜索-top" aria-label="Permalink to "5. 置顶状态搜索 (top)""></a></h4><p>按置顶状态过滤:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>top:true # 只显示置顶的条目</span></span>
|
||
<span class="line"><span>top:false # 只显示未置顶的条目</span></span></code></pre></div><h3 id="组合搜索" tabindex="-1">组合搜索 <a class="header-anchor" href="#组合搜索" aria-label="Permalink to "组合搜索""></a></h3><p>您可以组合多个条件,并与普通文本搜索结合:</p><h4 id="基本组合示例" tabindex="-1">基本组合示例 <a class="header-anchor" href="#基本组合示例" aria-label="Permalink to "基本组合示例""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>type:text hello # 搜索包含"hello"的文本条目</span></span>
|
||
<span class="line"><span>collect:true 重要 # 搜索包含"重要"的收藏条目</span></span>
|
||
<span class="line"><span>date:2024-01-01 type:image # 搜索2024年1月1日的图片</span></span></code></pre></div><h4 id="复杂组合示例" tabindex="-1">复杂组合示例 <a class="header-anchor" href="#复杂组合示例" aria-label="Permalink to "复杂组合示例""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>type:text collect:true daterange:2024-01-01~2024-01-31 工作</span></span>
|
||
<span class="line"><span># 搜索2024年1月份包含"工作"的收藏文本条目</span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span>type:file,image top:false date:2024-01-15</span></span>
|
||
<span class="line"><span># 搜索2024年1月15日的非置顶文件和图片</span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span>collect:true daterange:2024-01-01~2024-12-31 项目 计划</span></span>
|
||
<span class="line"><span># 搜索2024年全年包含"项目"或"计划"的收藏条目</span></span></code></pre></div><h3 id="实际使用场景" tabindex="-1">实际使用场景 <a class="header-anchor" href="#实际使用场景" aria-label="Permalink to "实际使用场景""></a></h3><h4 id="场景1-查找特定日期的工作文档" tabindex="-1">场景1:查找特定日期的工作文档 <a class="header-anchor" href="#场景1-查找特定日期的工作文档" aria-label="Permalink to "场景1:查找特定日期的工作文档""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>daterange:2024-01-01~2024-01-31 type:file 报告</span></span></code></pre></div><h4 id="场景2-整理收藏的重要信息" tabindex="-1">场景2:整理收藏的重要信息 <a class="header-anchor" href="#场景2-整理收藏的重要信息" aria-label="Permalink to "场景2:整理收藏的重要信息""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>collect:true type:text 密码</span></span></code></pre></div><h4 id="场景3-查找最近的截图" tabindex="-1">场景3:查找最近的截图 <a class="header-anchor" href="#场景3-查找最近的截图" aria-label="Permalink to "场景3:查找最近的截图""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>type:image daterange:2024-08-01~2024-08-01</span></span></code></pre></div><h4 id="场景4-查找未整理的内容" tabindex="-1">场景4:查找未整理的内容 <a class="header-anchor" href="#场景4-查找未整理的内容" aria-label="Permalink to "场景4:查找未整理的内容""></a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>collect:false top:false type:text</span></span></code></pre></div><h3 id="搜索提示" tabindex="-1">搜索提示 <a class="header-anchor" href="#搜索提示" aria-label="Permalink to "搜索提示""></a></h3><ol><li><strong>大小写不敏感</strong>:搜索不区分大小写</li><li><strong>日期格式</strong>:必须使用 YYYY-MM-DD 格式</li><li><strong>组合顺序</strong>:条件的顺序不影响搜索结果</li><li><strong>文本搜索</strong>: <ul><li>对于普通条目,搜索内容文本</li><li>对于收藏条目,搜索备注内容</li><li>对于文件条目,搜索文件名</li></ul></li></ol><h2 id="如何创造自己的动作按钮" tabindex="-1">如何创造自己的动作按钮 <a class="header-anchor" href="#如何创造自己的动作按钮" aria-label="Permalink to "如何创造自己的动作按钮""></a></h2><p>在超级剪贴板的右侧悬浮着工具栏,用户可以通过选择这些动作,跳转到其他插件处理剪贴板数据。</p><p>插件已经为您内置了一系列动作按钮:</p><ul><li>讯飞OCR识别</li><li>百度搜索</li><li>百度识图</li><li>统计文本字数</li><li>颜色管理</li><li>识别图片中二维码</li><li>上传到图床</li><li>翻译</li></ul><p>当内置动作无法满足你的需求时,用户可以通过插件内的「动作编辑器」自定义功能按钮,也可以从动作市场中获取更多内置的动作。</p><h3 id="基础用法" tabindex="-1">基础用法 <a class="header-anchor" href="#基础用法" aria-label="Permalink to "基础用法""></a></h3><p>你可以在「动作编辑器」新增一个动作,按要求填写好动作名、插件应用名称、指令以及匹配类型:</p><ul><li>动作名 <ul><li>用于动作命名,例如「百度OCR识别」</li></ul></li><li>插件应用名称 <ul><li>要跳转的插件名称</li></ul></li><li>指令 <ul><li>需要插件实现对应的指令</li></ul></li><li>匹配类型 <ul><li>选中哪些种类的数据时,才会展示此动作</li><li>例如「百度搜搜」只会匹配文本类型的剪贴板历史</li></ul></li></ul><p>以 <code>百度搜索</code> 为例,跳转的目标插件应用名称为 <code>网页快开</code>,指令为 <code>百度一下</code>,匹配的指令类型为 <code>文本</code></p><p>此时当你在「超级剪贴板」中选中一个文本时,就可以直接用百度搜索当前选中的这段文本。</p><h3 id="高级用例" tabindex="-1">高级用例 <a class="header-anchor" href="#高级用例" aria-label="Permalink to "高级用例""></a></h3><p>除了使用简单的字符串匹配不同的内容,<code>超级剪贴板</code>还支持使用正则表达式,这需要你切换到「高级匹配」并填写 JSON。</p><p>以<code>上传到图床</code>功能为例:</p><div class="language-json vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "id"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"custom.1663490864"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "title"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"上传到图床"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "icon"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"🚀"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "match"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: [</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"image"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, { </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">"type"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"file"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">"regex"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">".(?:jpg|jpeg|png)$"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }],</span></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "command"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"redirect:上传到图床"</span></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>这个动作除了可以匹配图片,还可以将符合正则的图片文件匹配上,在匹配上的历史记录上展示<code>上传到图床</code>按钮,携带数据跳转到图床插件,一键上传。</p><p>需要注意的是,因为自定义功能按钮实现的是<strong>携带数据跳转不同插件</strong>,所以<code>redirect</code>后的内容并不应该是普通关键字(普通关键字仅能作为插件入口,而不能携带数据),而应该是<code>文本</code>/<code>图片</code>/<code>文件或文件夹</code>:</p><p><img src="`+h+'" alt="" loading="lazy"><img src="'+c+'" alt="" loading="lazy"></p><ul><li><code>id</code>: <code>String</code> 全局唯一 必须以<code>custom</code>开头 建议以时间戳为后缀</li><li><code>title</code>: <code>String</code> 鼠标悬停时展示的文本</li><li><code>icon</code>: <code>String</code> 展示在插件内的图标</li><li><code>match</code>: <code><String | Object>[]</code> 匹配模式</li><li><code>command</code>: <code>String</code> 执行跳转的关键字 前缀<code>redirect:</code>是必须的</li></ul>',53))])}const P=n(u,[["render",q]]);export{F as __pageData,P as default};
|