Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Feature Request: Get current session

Aperta
#252 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api, cli

Direzione di ricerca

Start with the suggested server.list_sessions()[0] approach in the quickstart documentation and inspect how libtmux represents sessions. Compare that listing with the current session reported by tmux when running inside a tmux client. Done means the Python API reliably returns the session containing the current command-line client rather than the first listed session.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When using tmux on the command-line, I can get the current session by running tmux ls.

It would be useful if libtmux could do the same.

The suggested approach of using server.list_sessions()[0] does not work. It returns whichever session is at the top of tmux's listing, not necessarily the current one.

Lingua principale
Python
Stelle
1.2k
Fork
127
Merge medio
2h 13m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tmux-python/libtmux

Tutte le issue di tmux-python/libtmux

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.