質問

私はTMUXを学んでいるだけで、画面の経験はありません。あるTMUXクライアントのウィンドウを別のTMUXクライアントに移動できるかどうか疑問に思っています。 IRCクライアントを画面上の新しいウィンドウに移動したいと思います。

役に立ちましたか?

解決

はい、Move-Windowコマンドを使用できます。

move-window [-d] [-s src-window] [-t dst-window]
           (alias: movew)

これは、SRC-WindowのウィンドウがDST-Windowに移動されることを除いて、Link-Windowに似ています。

SRC-WindowとDST-Windowにはフォームがあります:session:window.pane(session and windowは名前またはidのいずれかです)。

したがって、「IRC」ウィンドウを使用して「チャット」セッションがあり、それを実行できる「other_session」セッションに移動したいとします(tmuxプロンプト)

move-window -s chat:irc -t other_session

あなたがすでにチャットにいる場合:IRCウィンドウはソースを指定する必要はありませんので

move-window -t other_session:

それをします。

同様に、「other_session」セッションからターゲットを指定する必要はありません。

movew -d irc:irc_window

Windows/Sessionsという名前を付けていない場合は、IDを使用する必要があります。

他のヒント

別の便利なもの:

 link-window [-dk] [-s src-window] [-t dst-window]
               (alias: linkw)
         Link the window at src-window to the specified dst-window.  If dst-window is specified
         and no such window exists, the src-window is linked there.  If -k is given and
         dst-window exists, it is killed, otherwise an error is generated.  If -d is given, the
         newly linked window is not selected.

これは、複数のセッションでウィンドウを共有できることを意味します。

Assuming I have these 2 sessions:  daemons and proj

tmux link-window -dk -s daemons:0 -t proj:0
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top