Repository navigation
feat(desktop): recent files in quick open and a recent picker (#1609) - #5864
Merged
Merged
Conversation
Contributor
|
Website preview ready: https://pr-5864-marktext-website.ransixi.workers.dev Built from |
Jocs
commented
Oct 23, 2026
Member
Author
There was a problem hiding this comment.
This review found two reproducible issues that should be addressed before merging; see the inline comments.
Validation on PR head 1332fd9f: the build passed, all 118 unit test files / 1,222 tests passed, and the existing quick-open-recent E2E passed. Additional checks in a real Electron instance with Playwright reproduced the directory IPC argument mismatch and the focus issue after removing an entry.
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
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.
Closes #1609
Summary
Adds recently opened files to the existing command palette and a dedicated recent files/folders picker, following VS Code's quick open behavior.
recently-used-documents.jsonon every platform (previously only Windows/Linux) with no entry cap, dedupe and MRU order. Entries whose file/folder was deleted or moved are pruned on read; entries whose parent folder is unreachable (e.g. an unmounted volume) are retained so they reappear when the volume returns.recently openedheader. Typing ranks name matches first, then path-only matches, then matching files from the opened folder underfile results, with duplicates removed.file.quick-open-recent): new picker listing folders first, then files, filterable by name or full path. Enter opens a folder or file,×removes an entry. macOS getsControl+R; Windows/Linux have no default (Ctrl+R is Replace) and reach it from File → Open Recent → Search Recent… or the command palette.Type of change
Test plan
vitest run test/unit: 118 files / 1222 tests pass.quick-open-recent,multi-folder-sidebar,command-palettepass.Notes for reviewers [optional]
recentdocumentsrole silently drops custom submenu items in the rendered menu (verified on a real Mac: the Electron menu model contains them, the native menu does not). The File → Open Recent submenu is therefore built from the stored list on macOS too.app.addRecentDocumentis still called so the Dock/OS recent list keeps working.Ctrl+Ris Replace andCtrl+Shift+R/Ctrl+Alt+Rare already used.file.quick-open-recentcan be bound by users.static/locales/*.min.json; runpnpm minify-localesafter locale edits before restarting dev.By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.