Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature request: Clean up

オープン
#264 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

No file, test, or entry point is named. Start by locating libtmux's existing session, window, and pane APIs and how they issue tmux lifecycle commands; define the behavior for empty windows and sessions, then add coverage showing that the requested cleanup is complete.

索引モデルが issue の本文から書いたものです。

説明

Using tmux with Python means we lose the ability to interact with tmux. libtmux is a great tool, though currently my biggest worry is that I create a bunch of sessions, windows and panes.

Exiting out of panes is easy, since if you do && exit at the end of the command you execute it closes that terminal and hence closes that pane.

However, I find that there is no easy way to close windows or sessions. Im currently contemplating writing my own script with some simple logic like...

if does_window_contain_pane(window-number) == False:
    tmux kill-window -t window-number
if session_contains_windows(sesh) == False:
    tmux kill-session -t sesh

Think this is possible to implement? I have noticed a lot of scripts floating around trying to accomplish this. It would make libtmux all the more powerful and all the helper scripts obsolete.

Thanks for the great tool!!

主要言語
Python
スター
1.2k
フォーク
127
平均マージ
2時間 13分
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tmux-python/libtmux のほかの issue

tmux-python/libtmux の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。