懒惰的 Tmux – 以树状视图懒加载 tmux 会话
你是否曾经打开 tmux,担心自己数十个会话都在占用内存……更糟的是,如果某个插件失败,它们可能会消失?<p>我曾经使用 tmux-resurrect 和 tmux-continuum 多年。它们“能用”,但:<p>- 会话有时会完全消失<p>- 当会话数量较多时,所有内容都保留在内存中<p>因此我开发了 Lazy Tmux:
https://lazy-tmux.xyz<p>它将所有会话以树状结构展示——就像它们已经存在一样——但只有在你进入时才会真正加载它们。<p>- 保持数十个会话而不占用过多内存<p>- 快速导航大型会话层级<p>- 懒加载窗格、命令、shell 和滚动历史<p>目前还处于早期阶段,GitHub 上有许多未解决的问题。欢迎反馈、想法或贡献: https://github.com/alchemmist/lazy-tmux<p>如果你曾经在 tmux 会话管理中挣扎过,这可能会让你的工作流程更加顺畅。
查看原文
Ever open tmux and dread that your dozens of sessions are all eating memory… or worse, might disappear if a plugin fails?<p>I used tmux-resurrect + tmux-continuum for years. They “work,” but:<p>- Sessions sometimes vanish entirely<p>- With many sessions, everything stays loaded in RAM<p>So I built Lazy Tmux:
https://lazy-tmux.xyz<p>It shows all sessions as a tree — like they already exist — but only actually loads them when you enter.<p>- Keep dozens of sessions without bloating memory<p>- Navigate large session hierarchies quickly<p>- Lazy-load panes, commands, shells and scrollback history<p>It’s early, and there are many open issues on GitHub. Feedback, ideas, or contributions are welcome: https://github.com/alchemmist/lazy-tmux<p>If you’ve ever wrestled with tmux session management, this might make your workflow a lot smoother.