Repository navigation
Desktop: Reader tabs, several papers open at once - #52
Merged
Merged
Conversation
The Reader keeps one tab per paper, after a Library tab that holds the side menu and every other screen. Read opens a paper in a tab after the one in front, or goes to its tab; a citation on the page opens beside the paper it is cited in. Each tab keeps its page, zoom, side panel and find words. Tabs close, reopen, reorder by dragging, close on a middle click, and have a right-click menu and a list of them all. Only the four tabs seen last keep their PDF open. Next Tab, Previous Tab, Close Tab and Reopen Closed Tab are in the Go menu: Ctrl+Tab on every system, as Cmd+Tab is the Mac's app switcher, Ctrl+W and Ctrl+Shift+T. The Reader's Back button goes; the Library tab is the way back. The tabs are kept in the library's meta table as JSON, with no schema change, so a library opened again shows its own papers where they were left. Reading them back leaves out papers deleted since or with no PDF. The page saves a second after a change, and at once before the app closes or the library changes, never after.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 66475f8f33
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
With no paper tab in front, the app opened on Papers while the Library tab named the screen kept, Search say. Show that screen.
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.
Several papers can now be open in the Reader at once, one tab each, after a Library tab that holds the side menu and every other screen.
What changes for the person using it
How it is built
store:Meta/SetMetaon the existingmetatable. No schema change.SetMetarefuses to touchschema_version.library:ReaderTabs/SaveReaderTabs.HasPDFis exported for the cited-on-this-page flag.ui:GET/POST /api/tabs, with the body capped at 64 KB. The front door calls onlylibrary.Checked
store(TestMeta),library(save and restore, deleted papers, bad input, unreadable value),ui(the handler).go vetand every package's tests pass.The desktop-app docs page on the website gets the new keys. The rebuilt pages carry today's date, as the site builder always stamps.