Quickstart starts tmux with the CLI before using libtmux
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
从 README.md 中的「Open a tmux session」部分(约第 87-93 行)和 docs/quickstart.md 中的「Start a tmux session」部分(约第 107-116 行)开始,然后阅读其后的 libtmux.Server() 示例。在这两个文件中,将 tmux new-session 步骤替换为 libtmux.Server().new_session(session_name="foo", window_name="bar"),并将 tmux attach -t foo 命令保留为可选步骤。当两个页面都从 Python 创建会话时即完成。libtmux.org 启动器和任何新的上下文管理器 API 不在范围之内。
由索引模型根据 Issue 内容生成。
描述
Summary
The README and docs/quickstart.md start with "First, start a tmux session to connect to" and a tmux new-session command, then use libtmux.Server(). libtmux can create that session itself. The maintainer asked on 2026-11-14 that ports not send users to a shell script when the library could do the job. Severity is low: the quickstart's point is piloting a session the reader attaches to in another terminal, so the shell command is part of the story.
Expected
- The quickstart creates the session from Python:
server = libtmux.Server(); session = server.new_session(session_name="foo", window_name="bar"), then tells the reader how to attach (tmux attach -t foo) as an optional step. - The libtmux.org "Attaching to tmux" program creates
workitself and connects a secondServerhandle to the same socket.
Actual
README.mdL91:tmux new-session -s foo -n barunder "Open a tmux session".docs/quickstart.mdL111:tmux new-session -n bar -s foounder "Start a tmux session", with the tutorial using sessionfooand windowbar.- libtmux.org (libtmux/docs) shows a
run.shlauncher on the Python "Attaching to tmux" guide (ports/py/guides/attaching-to-tmux.mdL50-76) and an environment scrub before the landing example (home-examples.jsonL24). The Python landing program does not need either: it useslibtmux.Server(socket_path=..., config_file="/dev/null"),new_session, and cleans up infinally.
Proposal
None. Server.new_session, Server.kill, Server(socket_path=..., config_file=...) exist. Optional: a public, non-pytest context manager for a private server (the pytest plugin's TestServer is test-only), for example libtmux.Server.private(root=None, config_file="/dev/null") that creates a temp directory, yields a Server, kills it and removes the directory on exit.
References
- Maintainer, 2026-11-14: "don't spam shell script to users"; file an issue per repo and name the missing APIs.
- libtmux/docs launcher issue; related existing issues tmux-python/libtmux#804 (create or reuse tmux resources with explicit cleanup ownership) and #823.
- 主要语言
- Python
- 星标
- 1.2k
- 派生
- 127
- 平均合并
- 2 小时 37 分钟
- 30 天内合并 PR
- 33
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tmux-python/libtmux 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
tmux-python/libtmux#839 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
tmux-python/libtmux#838 · 1 条评论 ·
维护者通常 1 天内回复
-
`show_option` coerces user options, so an `@` option set to `123` or `on` comes back as an int or a bool可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
tmux-python/libtmux#759 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
tmux-python/libtmux#745 · 2 条评论 ·
维护者通常 1 天内回复
-
Documentation: how to use internal libtmux logging可能已有人在做 @tony 于 84 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 72/100
tmux-python/libtmux#744 ·
维护者通常 1 天内回复
查看 tmux-python/libtmux 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
deepchem/deepchem#5289 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 60/100
UKGovernmentBEIS/inspect_evals#2892 · 1 条评论 ·
维护者通常 1 天内回复
-
Versioning docs: say that no output from the 0.46 warning check means nothing is affected可能已有人在做 @grelinfo 今天认领。 未关闭documentation priority:low size:S
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
alphacrack/readme2demo#293 ·