EN
返回档案库

档案库 · 开发与企业工具 · 产品决策 · 2023

压缩:按语料排序的打字快捷键获 HN 815 分,帮作者省下时间

eschluntz 解析了六个月的 Slack 消息,按省字符数×频率排序快捷键;2023-08-30 的 Show HN 获得 815 分。

Compress (eschluntz/compress)

它在赌什么好的快捷键是数据问题:按省字符数×频率对你的语料排序,短小的高频词比“the → t”这样的长短语更能节省字符。已上线

做的是什么生意

Compress is an open-source Linux utility that mines a corpus of your own writing — including a Slack data export — for phrases you repeat, ranks them by characters-saved × frequency, and generates Autokey config files that expand short abbreviations while you type.

起因

Developer eschluntz had been using the tool for about a year before posting it to Hacker News on 2023-08-30: he parsed six months of his Slack messages, found the phrases he typed most, and generated keyboard shortcuts for them, mainly for email and Slack. Earlier options shaped the design — Autokey's simulated key input proved more reliable than browser extensions that clashed with sites' own JavaScript, and expansion was restricted to Chrome because one-letter abbreviations collided with shell commands and variable names in a terminal or editor.

经过

The ranking produced the project's core surprise: very short, frequent words such as 'the → t' saved far more characters overall than longer phrases he used often, such as 'what do you think → wdytk', because characters-saved × frequency favors the tiny words. He refined the output into memorable abbreviation families — plurals gain an 's', phrases inherit their words' abbreviations ('the robot → tr'), similar words get similar forms (some/someone/something → s/sn/st) — as a manual step on top of the machine's top-200 list, and he kept the curated YAML in git to sync across his computers.

结果

No company, funding or revenue appears anywhere in the material: Compress stayed a personal open-source tool rather than a startup. What the author did report in the 2023-08-30 thread was that it was one of the rare side projects that actually saved him more time than he put in, and the repository remained public with 1.4k stars and 84 commits at the 2026-09-04 crawl.

背景

Compress 是一个开源的 Linux 工具,它挖掘你自己的写作语料中的重复短语,并将其转换为打字快捷键。开发者 eschluntz 在 2023-08-30 的 Show HN 之前已使用了约一年:他解析了六个月的 Slack 消息,找到自己输入最多的短语,并为其生成键盘快捷键,主要用于邮件和 Slack。Autokey 的模拟按键比浏览器扩展更好,因为它不跟网站的 JavaScript 冲突;配置仅在打开 Chrome 时运行,因为一个字母的缩写与其他地方的 shell 命令冲突。

最初的赌注是正确的缩写是数据问题,而不是品味问题:代码查找常见 n-grams,并按省字符数×频率排序。排序带来了真正的惊喜——诸如“the → t”这样的极短高频词,胜过作者常输入的长短语(如“what do you think → wdytk”)。他在其上添加了易记缩写的启发式规则,构建了复数加“s”、短语继承其单词缩写、相似词有相似形式的家族,并把精选列表保存在 git 中以同步到多台电脑。

2023-08-30 的帖子获得了 815 分和 313 条评论,作者在帖子中表示,该项目是少数真正为他节省了比投入更多时间的副项目。在 2026-09-04 的抓取中,该仓库有 1.4k 星标、30 个 forks 和 84 次提交,并在 2026-09-05 仍然活跃。仓库或帖子中没有关于公司、融资、收入或商业意图的任何文档——Compress 仍然是一个单人、开源的效率工具,而不是一个创业公司。

这件事要成立,得有什么

  • 这个赌注是可证伪且数据驱动的:按省字符数×频率排序,语料产生了反直觉的赢家——“the → t”打败了感觉重复的长短语。
  • 具体且有日期的牵引力:2023-08-30 的 Show HN(项目 37326870)获得 815 分和 313 条评论,2026-09-04 抓取中显示 1.4k 星标和 84 次提交,一天后仍然活跃。
  • 这是一个真实的用法弧线:作者解析了六个月的 Slack 历史,使用快捷键约一年,并表示该项目节省的时间超过了它的投入。

可借鉴之处

在优化习惯之前,测量其实际频率:最高产的打字快捷键来自短小常见词,而不是那些感觉重复的长短语——数据胜过直觉。

后续进展

截至 2026-09-05,Compress 仍然是一个公开的开源仓库——1.4k 星标、30 个 forks、9 个 watcher 和 84 次提交——但没有迹象表明它会变成生意。README 仍然将它定位为个人工具,用于邮件和 Slack,固定于 Linux/X11 Autokey,无论是仓库还是 HN 帖子,都没有记录公司、融资、收入或进一步的产品工作。它所展示的理念——从你自己的语料中排序文本扩展片段,而不是手动挑选——仍然是一个单人生产力技巧,而不是产品或创业公司。

资料来源

发现哪里写错了?告诉我们。

轮到你了

你刚读完一家。说说你在做什么,看看谁在赌同一件事。

免费账号 · 3 次免费提问 · 不用绑卡

相关案例