ElyMark: clear the recent list from the sidebar

A Clear Recent Files button under the list writes an empty recent.json
(ely_files::recent::clear); a failure is shown, not swallowed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-14 23:01:48 -04:00
1 parent 15d4c2066d
commit 98692cb80f
5 files changed
+76 -11

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ pub(super) const EN: &[(&str, &str)] = &[
("mark.pane.search", "Search"),
("mark.recent", "Recent"),
("mark.recent.none", "Nothing opened yet"),
("mark.recent.clear", "Clear Recent Files"),
("mark.outline.none", "No headings"),
("mark.search", "Results"),
("mark.search.file", "This file"),
@@ -106,6 +107,7 @@ pub(super) const ZH_CN: &[(&str, &str)] = &[
("mark.pane.search", "搜索"),
("mark.recent", "最近"),
("mark.recent.none", "还没有打开过文件"),
("mark.recent.clear", "清除最近文件"),
("mark.outline.none", "没有标题"),
("mark.search", "结果"),
("mark.search.file", "本文件"),