TUI action with side effect #34
Eliot00
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
相關PR:#32
TUI部分目前實現了entry的新建與編輯功能,當前的做法是,解析command string得到
QuakeActionNode,創建新的entry_file或者讀取相應的entry_file內容,保存entry_type,id,content信息到MainWidget::Editor,收到save指令時根據MainWidget::Editor內信息更新對應的entry_file。做法與src/server/entry_api.rs類似,部分代碼有重複。另外,目前新建entry操作不是原子化的,在開始編輯新的entry前就已經創建了文件,中間過程出錯文件依然存在。
Beta Was this translation helpful? Give feedback.
All reactions