100美元用于升级Fresh IDE以支持ePub TUI阅读。

2作者: jph大约 1 个月前原帖
我向开源项目捐款,并且非常喜欢新的 Fresh IDE TUI 来教学生。我是在尝试了 astronvim、helix、zed、micro 等之后发现它的。 我在 HN 上提供 100 美元的奖励,鼓励任何人使用 Rust 为 Fresh 添加 epub 阅读器功能。 链接:https://github.com/sinelaw/fresh/issues/2087 规格:在左侧文件浏览器中,我选择文件 `foo.epub`,然后右侧文件查看器以人类可读的文本而非字节的形式显示 epub 内容。 范围:目标是让开发者能够在 Fresh 的 TUI 中阅读 epub 文档,而无需调用 pandoc 或启动单独的应用程序、助手或插件。Fresh 在开发者的笔记本电脑上本地运行,而 ePub 存储在远程服务器上,出于安全原因无法下载到本地笔记本电脑。 实现:我建议尝试 Rust 的 `epub` 和 `bookokrat` 库,因为它们在我的其他项目中表现良好。实现不能使用 JavaScript 或 TypeScript,因为这涉及到我无法处理的合规性问题。 顺便提一下,我与 Fresh 没有任何关联,仅仅是一个满意的用户和开源赞助者。
查看原文
I donate to open source, and I&#x27;m loving the new Fresh IDE TUI for teaching students. I found it after trying astronvim, helix, zed, micro, etc.<p>I&#x27;m offering $100 as an incentive for anyone on HN who can add epub reader capabilities to Fresh using Rust.<p>https:&#x2F;&#x2F;github.com&#x2F;sinelaw&#x2F;fresh&#x2F;issues&#x2F;2087<p>Spec: in the left-side file explorer, I select file `foo.epub`, then the right-side file viewer shows me the epub content as human-readable text not bytes.<p>Scope: The goal is to be good enough for a developer to be able to read epub documentation within Fresh in the TUI, without needing to call pandoc or launch a separate app or helper or plugin. Fresh runs locally on the developer&#x27;s laptop, and the ePub is on a remote server and for security reasons cannot be downloaded to the local laptop.<p>Implementation: I can suggest trying the Rust crate `epub` and `bookokrat` because these work well for me in other projects. The implementation can&#x27;t use JavaScript or TypeScript because of compliance aspects beyond me.<p>As an aside, I&#x27;m not affiliated with Fresh in any way, other than as a happy user and open source sponsor.