Giter Club home page Giter Club logo

cherry-snippet-v2's Introduction

cherry-snippet v2版本

介绍

cherry-snippet 是借助 cherryTree 笔记软件,制作的免费开源文本片段管理工具

: 目前还处于beta版本, 稳定版本cherry-snippet v1

v1->v2 改进: 用webview2预览、 d2d绘制hook界面、list列表增加图标

  • 代码片段记录快搜预览
  • 代码片段上屏输入到目标窗口 展示
  • 快速添加编辑 编辑
  • 代码片段执行, 目前执行python、ahk、bat等,例如打开百度 打开百度
  • 搜索支持拼音全拼、简拼、小鹤双拼、86五笔等
  • hook模式类似输入法,实时检测光标位置 hook

依赖环境

环境 版本
系统 开启html预览需要win10或者安装 webview2 runtime
ahk 版本 autohotkey v2H
cherryTree.exe cherryTee定制 百度网盘 提取码:bet2
cherryTree定制 蓝奏云 密码:1bkm
dx dx11 依赖下载

安装步骤

  1. 下载zip,或者git clone后, 执行 cherry-snippet.ah2或者cherrysnippet.exe
  2. 第一次执行会提示选择cherryTree.exe和data.ctb的目录(cherrytree_0.99.51.0_win64_portable\mingw64\bin\cherrytree.exe)

使用说明

按键列表

普通搜索模式
  • 打开搜索界面, 默认 shift+enter
  • 执行代码片段, 默认 enter
  • 当前代码片段输入到目标窗口, 默认 ctrl+enter
  • 用cherrytree编辑当前代码片段, 默认 ctrl+e
  • 复制当前代码片段到系统剪切板, 默认 ctrl+c
hook搜索模式
  • 打开hook界面, 默认 shift+空格
  • 当前代码片段输入到目标窗口, 默认 enter

插件

/cal 计算器

例如: /cal 100+100

/cd 词典翻译

例如: /cd 我能实时翻译 回车,输入到目标窗口 ctrl+enter,把对于的英文转为变量名称

/ai chatgpt插件

自定义listview图标

  1. 在cherrytree修改节点的属性,在tag添加 "icon:百度"关键字
  2. 用上面方法设置名称后,需要放置对应名字的 Lnk,png,icon等格式的文件到/icons/tree目录

img

img

父节点设置了icon,则子节点也同样继承 icon:xx 必须写到最后

屏蔽节点和子节点

在cherrytree修改节点的属性,在tag添加 "屏蔽"关键字,见上图

注意事项

  • .ctb文件和导出路径一般不要设置到C盘(未知权限问题)
  • cherrytree设置启用系统托盘可以加快跳转 cherrytree启用系统托盘

TODO

  • 快捷键设置ui完善
  • html格式内容存入剪贴板

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.