Quickstart starts tmux with the CLI before using libtmux
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 65/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- documentation
Direção de pesquisa
Comece pela seção "Open a tmux session" do README.md (por volta das linhas 87-93) e pela seção "Start a tmux session" do docs/quickstart.md (por volta das linhas 107-116), depois leia os exemplos de libtmux.Server() que vêm em seguida. Nos dois arquivos, substitua a etapa tmux new-session por libtmux.Server().new_session(session_name="foo", window_name="bar") e mantenha o comando tmux attach -t foo como etapa opcional. Está concluído quando as duas páginas criarem a sessão a partir do Python. O launcher do libtmux.org e qualquer nova API de gerenciador de contexto ficam fora do escopo.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 1.2k
- Forks
- 127
- Merge médio
- 2h 37min
- PRs com merge (30d)
- 33
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de tmux-python/libtmux
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
tmux-python/libtmux#839 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
tmux-python/libtmux#838 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
`show_option` coerces user options, so an `@` option set to `123` or `on` comes back as an int or a boolTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
tmux-python/libtmux#759 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
tmux-python/libtmux#745 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Documentation: how to use internal libtmux loggingTalvez já em andamento @tony assumiu há 84 dias. Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
tmux-python/libtmux#744 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de tmux-python/libtmux
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
deepchem/deepchem#5289 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Pull Request for pretty_macAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 60/100
UKGovernmentBEIS/inspect_evals#2892 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Versioning docs: say that no output from the 0.46 warning check means nothing is affectedTalvez já em andamento @grelinfo assumiu hoje. Abertadocumentation priority:low size:S
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
alphacrack/readme2demo#293 ·