Show HN:便携式巨型文件查看器
Show HN: Portable Giant File Viewer

原始链接: https://github.com/sunny-chung/giant-log-viewer

巨型日志查看器 (Giant Log Viewer) 是一款轻量级、跨平台(Windows、macOS、Linux)的应用程序,专为查看大型文本文件(特别是UTF-8和ASCII编码)而设计,尤其适用于无法使用 `less` 命令的环境。它具有极低的内存占用率(JVM堆内存限制为80MB),无论文件大小(在限制范围内)都能实现即时加载,可以处理高达数TB的文件。 其限制包括:单行超过1MB,不支持表情符号,需要图形界面,并且仅支持Windows、macOS或Linux系统。它旨在模仿 `less` 命令的按键绑定用于导航(可以通过“?”按钮查看)。 可执行文件由GitHub Actions直接从开源代码构建,未经过数字签名,因此建议查看源代码。开发者正在寻求捐款以实现未来签名。欢迎提交错误报告和功能请求,但项目优先考虑避免使用外部库。

Hacker News用户“sunny41”分享了“Show HN: 便携式巨型文件查看器”,这是一个旨在快速打开和浏览大型文本文件(几GB)而不会压垮系统资源的工具,解决了Notepad++等程序的局限性。该工具受到Linux `less` 分页器的启发,无需安装,开源(GitHub),并适用于Windows、Linux和macOS。 其功能包括:即时打开UTF-8文本文件(无需将整个文件加载到内存中)、键盘导航、有限的搜索功能以及便携性。“sunny41”鼓励用户反馈、点赞、建议和贡献。应用程序图标是AI生成的。一位用户询问了配色方案,特别是暗黑模式,sunny41确认暗黑模式将在未来一周内推出,并且颜色自定义可能是未来的一个功能。

原文

Needing to check a 4.9 GB log file on a platform where the less file pager is not available? Don't cry. This software is going to save you!

This software loads instantly with same low memory footprint regardless of a 4 MB, 4 GB or 4 TB text file is opened, as long as it doesn't hit any limitation. The JVM is limited to use at most 80 MB heap memory (plus overheads) currently.

Screenshot

  • Supports UTF-8 encoding and ASCII text files only
  • Doesn't work if there is a long line (>= 1 MB) in the file
  • Emoji sequences are not supported -- it would be displayed as multiple emoji characters
  • Doesn't work if your OS has no GUI
  • Doesn't work if you are not using Windows, macOS nor Linux
  • Not as powerful as less yet
  1. Drag and drop a UTF-8 / ASCII text file to this application.
  2. Navigate with a keyboard. The less key bindings can be used. Click the "?" button in the top-right corner for the full keymap.

Executables are not signed by verified developers

Builds are built by GitHub runners which take the source code published here directly. You can always examine the source code or build yourself. Please also consider donation so that I could sign the executables one day.

https://github.com/sunny-chung/giant-log-viewer/issues

Welcome! Note that this project is slightly reluctant to use third-party libraries.

联系我们 contact @ memedata.com