代码片段管理工具:rofi前端+Java守护进程
This commit is contained in:
40
CodeSnippetRofi/common/constant.py
Normal file
40
CodeSnippetRofi/common/constant.py
Normal file
@@ -0,0 +1,40 @@
|
||||
import os
|
||||
|
||||
code_snippet_dir = os.getenv("CODE_SNIPPET_DIR")
|
||||
code_snippet_port = os.getenv("CODE_SNIPPET_PORT")
|
||||
code_snippet_rofi = os.getenv("CODE_SNIPPET_ROFI")
|
||||
|
||||
action_list = "LIST"
|
||||
action_add = "ADD"
|
||||
action_edit = "EDIT"
|
||||
action_delete = "DELETE"
|
||||
|
||||
template_add = """
|
||||
## Snippet
|
||||
|
||||
```[Language]
|
||||
|
||||
```
|
||||
|
||||
## MetaData
|
||||
|
||||
- Name
|
||||
-
|
||||
- Language
|
||||
-
|
||||
"""
|
||||
template_edit = """
|
||||
## Snippet
|
||||
|
||||
```[Language]
|
||||
|
||||
```
|
||||
|
||||
## MetaData
|
||||
|
||||
- Tags
|
||||
-
|
||||
-
|
||||
- Description
|
||||
-
|
||||
"""
|
||||
Reference in New Issue
Block a user