makecindy / makecindy/cindy

右侧栏文件预览支持 PDF 阅读(pdfjs 已随包但侧栏提示不支持预览)

Open
#651 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: forest
**客户端版本**: 0.1.14

---

## 使用场景
科研用户,工作区里大量论文 PDF(LaTeX 编译产物、参考文献)。在会话右侧栏文件浏览器中点开 PDF 时,希望直接在应用内阅读,而不是每次跳出应用。

## 诉求
侧栏预览区内嵌 PDF 阅读(翻页/缩放/文字选择即可,不需要注释功能),本地与远程项目会话都生效。

当前行为:右侧栏文件树点击 PDF(本例为远程项目会话,文件已从远端拉取到本地,能显示文件名/大小/修改时间),预览区显示「此文件类型不支持在应用内预览」,只有「在系统中打开」和「显示所在文件夹」两个按钮。

## 建议方案
安装包 app.asar 的 `renderer/main_window/` 下已随包 `pdfjs/` 目录,说明 PDF 渲染能力已存在,推测只是侧栏文件预览组件未接入该查看器(或仅对部分入口开启)。若如此,希望把侧栏预览的 PDF 分支接到已有 pdfjs 查看器。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start in renderer/main_window/ and inspect the existing pdfjs/ viewer, then trace how the sidebar file preview handles unsupported types. Connect PDF selection to the existing viewer for local and remote-session files, and verify that paging, zoom, and text selection work instead of showing the unsupported-preview message.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.