在 daemon 优化了异常处理行为; 为编辑器等也设置了可定义的环境变量; 更新 README;
This commit is contained in:
@@ -2,13 +2,16 @@ 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")
|
||||
code_snippet_rofi = os.getenv("CODE_SNIPPET_ROFI", "rofi")
|
||||
code_snippet_editor = os.getenv("CODE_SNIPPET_EDITOR","nvim")
|
||||
|
||||
action_list = "LIST"
|
||||
action_add = "ADD"
|
||||
action_edit = "EDIT"
|
||||
action_delete = "DELETE"
|
||||
|
||||
editor_class = "code_snippet_editor"
|
||||
|
||||
template_add = """
|
||||
## Snippet
|
||||
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
#
|
||||
|
||||
import atexit
|
||||
from datetime import datetime
|
||||
from decimal import Decimal, InvalidOperation
|
||||
import signal
|
||||
import subprocess
|
||||
import time
|
||||
from datetime import datetime
|
||||
from decimal import Decimal, InvalidOperation
|
||||
|
||||
# Python < 3.2 doesn't provide a context manager interface for Popen.
|
||||
# Let's make our own wrapper if needed.
|
||||
|
||||
Reference in New Issue
Block a user