修改 forkgram/tdesktop 实现 跳转到前一条后一条@我的消息
前言 我们之前已经实现了 有@我消息的群 置顶 方便我们"快速到达战场" 又进一步实现了 跳转到最后一条@我的消息 但是, 如果群组里面新 @我的消息多于一条呢? 面向Agent开发 Hermes 对接 oc/deepseek-v4-flash-free https://crazypeace.eu.org/2026/08/omniroute-hermes-agent-oracle-arm-ubuntu-root-sudo-.html 下面的引用框里面都是我发给Agent的自然语言 基于 https://github.com/crazypeace/forkgram-tdesktop/tree/goto-last-mention 的代码, 进行增强开发 当 点击 "Go to the last msg mentioned me" 之后, 实现了跳转消息的效果, 然后, 在这个时候, 再次点击 "Go to the last msg mentioned me", 希望能继续跳转到再上一条 @消息 你说一下你是怎么理解 我的需求的, 与我讨论. Agent分析了一通, 问我, 向前跳转的时候, 以什么为锚点? 是把上一次跳转的消息id保存下来, 作为锚点? 还是以当前群组消息视口可见的消息为锚点? 锚点=当前视口 把原来的 "Go to the last message mentioned me" 菜单项 改为 "Go to the Pre msg @me" 效果为, 以当前视口为锚点, 跳转上一条 @我 的消息 增加一项 "Go to the Next msg @me" 效果为, 以当前视口为锚点, 跳转下一条 @我 的消息 成果 群组菜单 跳转效果 Github 代码 https://github.com/crazypeace/forkgram-tdesktop/tree/goto-pre-next-mention Release https://github.com/crazypeace/forkgram-tdesktop/releases/tag/goto-pre-next-mention ======== 后记 跳转下一条 @我 的消息...