-
Notifications
You must be signed in to change notification settings - Fork 52
[201_78] 使用json来存储最近使用的文件 #2757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+237
−10
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da-liii
reviewed
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)))))))) |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
da-liii
reviewed
Feb 9, 2026
| (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") |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when
da-liii
reviewed
Feb 9, 2026
da-liii
reviewed
Feb 9, 2026
da-liii
reviewed
Feb 9, 2026
da-liii
approved these changes
Feb 9, 2026
Contributor
da-liii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
如何测试
文件->打开,打开几个文件。文件->最近使用,能看到刚刚打开的几个文件。文件->最近使用打开文件a,观察能否打开成功,随后点击文件->最近使用,文件a的选项在第一处。文件->最近使用,选择一个已经打开的文件,会跳转过去,随后点击文件->最近使用,选择的文件位于第一处。文件->最近使用打开它,会弹出窗口提示文件不存在,随后点击文件->最近使用,观察该文件是否存在。2026/02/04 使用json来存储最近使用的文件