Skip to content

Conversation

@wumoin
Copy link
Contributor

@wumoin wumoin commented Feb 4, 2026

如何测试

  1. 点击文件->打开,打开几个文件。
  2. 点击文件->最近使用,能看到刚刚打开的几个文件。
  3. 关闭一个文件a,再点击文件->最近使用打开文件a,观察能否打开成功,随后点击文件->最近使用,文件a的选项在第一处。
  4. 点击文件->最近使用,选择一个已经打开的文件,会跳转过去,随后点击文件->最近使用,选择的文件位于第一处。
  5. 删除一个文件,再尝试通过文件->最近使用打开它,会弹出窗口提示文件不存在,随后点击文件->最近使用,观察该文件是否存在。

2026/02/04 使用json来存储最近使用的文件

@wumoin wumoin changed the title [201_71] 使用json来存储最近使用的文件 [201_78] 使用json来存储最近使用的文件 Feb 9, 2026
(if win? (load-document name) (load-buffer name))))))
(begin
(if win? (load-document name) (load-buffer name))
(when (not (url-exists? (url->system name))) (recent-files-remove-by-path (url->system name))))))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

(decode (if old? decode-old list->ahash-table)))
(set! interactive-arg-table (decode l)))))
(set! interactive-arg-table (decode l))))
(if (url-exists? "$TEXMACS_HOME_PATH/system/recent-files.json")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when

Copy link
Contributor

@da-liii da-liii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii da-liii merged commit 6ede8a4 into main Feb 9, 2026
@da-liii da-liii deleted the hxh/201_71/recentFile branch February 9, 2026 07:01
@wumoin wumoin restored the hxh/201_71/recentFile branch February 9, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants