Fix crash when BIBTEX config is empty + SyntaxWarning#50
Open
evolv-to wants to merge 4 commits intodsanson:masterfrom
Open
Fix crash when BIBTEX config is empty + SyntaxWarning#50evolv-to wants to merge 4 commits intodsanson:masterfrom
evolv-to wants to merge 4 commits intodsanson:masterfrom
Conversation
- Guard `bib_from_field()` with early return when `config.BIBTEX` is unset, preventing a `PybtexError` crash on every PDF open for users who don't use BibTeX. - Use raw string `r'\|'` in `bib_from_key()` to fix Python 3.12+ `SyntaxWarning: invalid escape sequence '\|'`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- `+`/`=` zooms in, `-` zooms out (10% per step, range 0.25x–10x) - `z` resets zoom to fit-to-page - `H`/`J`/`K`/`L` pans left/down/up/right when zoomed in - Pan auto-clamps to page bounds - Pan resets on page change; zoom level persists For reflowable formats (EPUB, etc.), `+`/`-` retain existing font-size behavior. Zoom and pan only apply to fixed-layout documents like PDF. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Render only the visible viewport via PyMuPDF clip rect instead of transmitting the full zoomed image (efficient at high zoom levels) - Page stays centered automatically when zooming in/out - Pan with Shift+Arrow keys (never steals h/j/k/l page navigation) - 10% zoom increments for fine control (range 0.25x–10x) - Pan auto-clamps to page bounds, resets on page change Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add q=2 flag to graphics transfer command to suppress Kitty's per-chunk response output, which was causing visible [1/5] [2/5] artifacts on the right side of the screen during re-renders. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
bib_from_field()with early return whenconfig.BIBTEXis unset/empty, preventing aPybtexErrorcrash on every PDF open for users who don't use BibTeXr'\|'inbib_from_key()to fix Python 3.12+SyntaxWarning: invalid escape sequence '\|'Problem
When
config.BIBTEXis empty (the default), opening any PDF crashes with:This affects all users who haven't configured a BibTeX file, which is likely the majority of casual users.
Test plan
🤖 Generated with Claude Code