升级 Fresh IDE,用于 ePub TUI 阅读,100 美元
2 分•作者: jph•大约 2 个月前
我向开源项目捐款,并且非常喜欢用于教学的新 Fresh IDE TUI。我是在试用了 astronvim、helix、zed、micro 等之后才发现它的。<p>我将提供 100 美元的奖励,以激励 Hacker News 上的任何人使用 Rust 为 Fresh 添加 epub 阅读器功能。<p>https://github.com/sinelaw/fresh/issues/2087<p>具体要求:在左侧的文件浏览器中,我选择文件 `foo.epub`,然后右侧的文件查看器将 epub 内容显示为人类可读的文本,而不是字节码。<p>范围:目标是让开发者能够直接在 Fresh 的 TUI 中阅读 epub 文档,而无需调用 pandoc 或启动单独的应用程序、辅助程序或插件。Fresh 在开发者的笔记本电脑上本地运行,而 ePub 位于远程服务器上,出于安全原因,无法下载到本地笔记本电脑。<p>实现:我建议尝试使用 Rust crate `epub` 和 `bookokrat`,因为它们在我的其他项目中运行良好。由于合规性方面的考虑,实现不能使用 JavaScript 或 TypeScript。<p>顺便说一句,除了作为快乐的用户和开源赞助者之外,我与 Fresh 没有任何关联。
查看原文
I donate to open source, and I'm loving the new Fresh IDE TUI for teaching students. I found it after trying astronvim, helix, zed, micro, etc.<p>I'm offering $100 as an incentive for anyone on HN who can add epub reader capabilities to Fresh using Rust.<p>https://github.com/sinelaw/fresh/issues/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'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't use JavaScript or TypeScript because of compliance aspects beyond me.<p>As an aside, I'm not affiliated with Fresh in any way, other than as a happy user and open source sponsor.