代码片段管理工具:rofi前端+Java守护进程

This commit is contained in:
2025-10-05 00:30:37 +08:00
commit a6b2905ad2
49 changed files with 3058 additions and 0 deletions

8
test/data-test.json Normal file
View File

@@ -0,0 +1,8 @@
{
"action": "ADD",
"data": {
"name": "ExtractJSON",
"language": "Java",
"content": "public static String extractJson(String jsonStr) {\n jsonStr = jsonStr.replace(\"“\", \"\\\"\").replace(\"”\", \"\\\"\");\n int start = jsonStr.indexOf(\"{\");\n int end = jsonStr.lastIndexOf(\"}\");\n if (start != -1 && end != -1 && start < end) {\n return jsonStr.substring(start, end + 1);\n }\n return jsonStr;\n}"
}
}

7
test/test.json Normal file
View File

@@ -0,0 +1,7 @@
{
"tags": [
"ByteBuddy",
"动态代理"
],
"description": "通过ByteBuddy创建动态代理类的示例"
}

50
test/test.md Normal file
View File

@@ -0,0 +1,50 @@
## Snippet
```Java
class test {
while(true)
{
//输入层级
if (esc) {
break;
}
if (enter) {
//按下enter
while (true) {
//展示结果层
if (未找到) {
//无结果
if (esc || enter) {
break;
}
} else {
//有结果
if (enter) {
//选中结果按下enter
while (true) {
//展示操作层
if (esc) {
break;
}
if (enter) {
//执行操作
doSomething();
return;
}
}
}
}
}
}
}
}
```
## MetaData
- Language
- Java
- Tags
- hello world
- test
- Description
- test-description