sutaC / sutaC/git-glimpse

Feature Request: Native PDF Rendering

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue help wanted
Dominant language
Python
Stars
1
Forks
0
Avg merge
1m
Merged PRs (30d)
1

Description

Feature Request: Native PDF Rendering

Currently, GG does not render PDF files in the repository view and instead shows that the format is unsupported, requiring users to open the file via the Raw button.

It would be useful to support inline PDF rendering on the file page using the browser’s built-in PDF viewer, while ensuring proper security isolation.

Proposed Functionality

  • Render PDF files directly in the repository file view

  • Provide a fallback option if the PDF cannot be loaded

  • Ensure the embedded PDF:

    • cannot access page storage or cookies
    • cannot execute scripts
    • is isolated from the parent page

This would improve usability by allowing users to preview PDFs without leaving the repository page, while maintaining security.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the repository file view and locate the current unsupported-format handling. Investigate how the browser’s built-in PDF viewer can be embedded with the requested storage, cookie, script, and parent-page isolation, then define a fallback for loading failures. Done means PDFs render inline without weakening those security boundaries.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.