How do you hide a tmux pane?Moving tmux pane to windowHow do I equally balance tmux(1) split panes?Tmux...

Why is this integration method not valid?

The disk image is 497GB smaller than the target device

How to deceive the MC

Why is 'additive' EQ more difficult to use than 'subtractive'?

Moons and messages

Why is unzipped directory exactly 4.0K (much smaller than zipped file)?

Where is Jon going?

Status of proof by contradiction and excluded middle throughout the history of mathematics?

Can flying creatures choose to hover, even if they don't have hover in their flying speed?

Are there historical examples of audiences drawn to a work that was "so bad it's good"?

Navigating a quick return to previous employer

Is "vegetable base" a common term in English?

If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?

To exponential digit growth and beyond!

What would prevent living skin from being a good conductor for magic?

How can I minimize the damage of an unstable nuclear reactor to the surrounding area?

Is there an idiom that means that you are in a very strong negotiation position in a negotiation?

Why does Bran want to find Drogon?

Cardio work for Muay Thai fighters

Is there a simple example that empirical evidence is misleading?

Are PMR446 walkie-talkies legal in Switzerland?

Why does FOO=bar; export the variable into my environment

Why does the painters tape have to be blue?

Is superuser the same as root?



How do you hide a tmux pane?


Moving tmux pane to windowHow do I equally balance tmux(1) split panes?Tmux identify if pane is zoomed and activetmux command to move pane to edge of window?Tmux - Get pane # of each pane in a window from a script?tmux select-pane -LDUR command - disable auto-cycling behaviorHow can I reorient a pane and make it full screen height in tmux?Bring a broken out pane back to window in tmuxTmux insert pane numberHow can I automatically restart a tmux (Byobu) pane when its task ends?tmux: Send and execute highlighted code in other pane






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







53















I have 3 panes in my tmux window:



--------------------------
| | 2 |
| | |
| 1 |----------|
| | 3 |
| | |
--------------------------


Panes 1 and 2 have vim. Pane 3 runs a cli I am developing. Sometimes I want to compare panes 1 and 2, so I want to hide pane 3:



--------------------------
| | |
| | |
| 1 | 2 |
| | |
| | |
--------------------------


and then bring back pane 3 again. I don't want to kill pane 3 as I have set up some things there and don't want to go though setting them up again.




  • Is there something similar to PREFIX + z which can zoom pane 2 but without touching pane 1? Or

  • Is there a way to hide pane 3 quickly and bring it up back when needed?










share|improve this question































    53















    I have 3 panes in my tmux window:



    --------------------------
    | | 2 |
    | | |
    | 1 |----------|
    | | 3 |
    | | |
    --------------------------


    Panes 1 and 2 have vim. Pane 3 runs a cli I am developing. Sometimes I want to compare panes 1 and 2, so I want to hide pane 3:



    --------------------------
    | | |
    | | |
    | 1 | 2 |
    | | |
    | | |
    --------------------------


    and then bring back pane 3 again. I don't want to kill pane 3 as I have set up some things there and don't want to go though setting them up again.




    • Is there something similar to PREFIX + z which can zoom pane 2 but without touching pane 1? Or

    • Is there a way to hide pane 3 quickly and bring it up back when needed?










    share|improve this question



























      53












      53








      53


      26






      I have 3 panes in my tmux window:



      --------------------------
      | | 2 |
      | | |
      | 1 |----------|
      | | 3 |
      | | |
      --------------------------


      Panes 1 and 2 have vim. Pane 3 runs a cli I am developing. Sometimes I want to compare panes 1 and 2, so I want to hide pane 3:



      --------------------------
      | | |
      | | |
      | 1 | 2 |
      | | |
      | | |
      --------------------------


      and then bring back pane 3 again. I don't want to kill pane 3 as I have set up some things there and don't want to go though setting them up again.




      • Is there something similar to PREFIX + z which can zoom pane 2 but without touching pane 1? Or

      • Is there a way to hide pane 3 quickly and bring it up back when needed?










      share|improve this question
















      I have 3 panes in my tmux window:



      --------------------------
      | | 2 |
      | | |
      | 1 |----------|
      | | 3 |
      | | |
      --------------------------


      Panes 1 and 2 have vim. Pane 3 runs a cli I am developing. Sometimes I want to compare panes 1 and 2, so I want to hide pane 3:



      --------------------------
      | | |
      | | |
      | 1 | 2 |
      | | |
      | | |
      --------------------------


      and then bring back pane 3 again. I don't want to kill pane 3 as I have set up some things there and don't want to go though setting them up again.




      • Is there something similar to PREFIX + z which can zoom pane 2 but without touching pane 1? Or

      • Is there a way to hide pane 3 quickly and bring it up back when needed?







      tmux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 3 at 19:39









      Kusalananda

      147k18278464




      147k18278464










      asked Jul 22 '14 at 7:02









      user881300user881300

      5492714




      5492714






















          5 Answers
          5






          active

          oldest

          votes


















          65














          Use the break-pane and join-pane commands. Refer to man tmux for details, options and usage.





          Hide Pane 3:



          Select pane 3 and enter Prefix-:break-pane -dP.



          tmux will send pane 3 to a window in the background (the -d flag) and print some information about it in pane 2 (the -P flag). By default you'll see something like 1:2.0 (meaning: session:window.pane). Hit q to continue working.1



          1With some practice you will be able to drop the -P flag since you can predict the session:window.pane triplet: session defaults to the current session and pane defaults to 0 while window will be the next free window identifier.



          Get Pane 3 back:



          To get pane 3 and the layout back, select pane 2 and issue Prefix-:join-pane -vs 1:2.0 telling tmux to split pane 2 vertically (-v) and to join the (source) pane (-s) with identifier 1:2.0. Optionally, you can drop either the session or the pane identifier. Note also that tmux stores a command line history, conveniently accessible with Prefix-:-Up.



          You'll probably need some time to get the hang of it, but once you do, you'll surely be able to come up with custom key bindings that are convenient for you.





          This question contains some useful information and tricks that might improve your workflow.






          share|improve this answer


























          • Clear instructions! Works smoothly for me, much better than my answer!

            – Bernhard
            Jul 22 '14 at 8:55











          • By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

            – CodyChan
            Oct 19 '15 at 3:40





















          4














          An idea: run tmux in tmux.



          Original set up:



          Pane 1 and pane 2; side by side. Run vim in Pane 1 as normal.



          In pane 2, run tmux again and create two panes (one on top of the other this time). Then run vim in pane 2.1 and your CLI in pane 2.2. This should allow you to full screen pane 2.1 with your second instance of Vim resulting in the behaviour you want.






          share|improve this answer


























          • this is what I call out of box thinking !

            – user881300
            Jun 23 '16 at 0:14











          • Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

            – BinaryBen
            Jun 23 '16 at 7:18






          • 1





            @user881300 Technically, this is box in the box thinking.

            – Mateen Ulhaq
            Nov 1 '18 at 19:04



















          3














          Instead of hiding pane 3, you could also cheat a bit, and make it very small, which will probably also work for your case.



          When pane 2 is the active pane you can



          PREFIX : resize-pane -D 40


          Then, to move it up again, you can either



          PREFIX : resize-pane -D 28


          where you would have to replace 28 with a decent number, or, instead, you could try PREFIXEsc4, which does automatic resizing.






          share|improve this answer
























          • I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

            – user881300
            Jul 22 '14 at 8:13











          • @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

            – Bernhard
            Jul 22 '14 at 8:15






          • 1





            CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

            – FelikZ
            Aug 30 '15 at 9:03





















          0














          I now this question is almost 5 years old but I just found it because I wanted to do something similar and I came up with the following keybindings thanks to user78291's answer:



          bind-key ! break-pane -d -n _hidden_pane
          bind-key @ join-pane -s $.1


          This way, I can use Prefix! to hide the current pane and Prefix@ to bring it back. The nice part is that I can hide multiple panes this way.



          It's far from perfect, but it does the job of hiding panes and bringing them back quite well.






          share|improve this answer































            0














            I know this does not actually hide the pane you are working on but I was trying to do this to stop tmux from sending common commands to selected windows and got to a much simpler solution.



            If you don't want to visually hide the pane but just want to stop any input going to the pane. A scenario could be you want to send a command to 5 open panes but don't want to send it to 2 of them.



            In this use case you can do
            ctrl + s on the panes that you don't want the commands to go to (ctrl + s locks all input to the pane).



            Once you are done, press ctrl + c to come back out.



            Note : Dont press ctrl + q after the commands as it will run all the commands on that screen. ctrl + c will not do this (tried this on Ubuntu).






            share|improve this answer








            New contributor



            Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145857%2fhow-do-you-hide-a-tmux-pane%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              65














              Use the break-pane and join-pane commands. Refer to man tmux for details, options and usage.





              Hide Pane 3:



              Select pane 3 and enter Prefix-:break-pane -dP.



              tmux will send pane 3 to a window in the background (the -d flag) and print some information about it in pane 2 (the -P flag). By default you'll see something like 1:2.0 (meaning: session:window.pane). Hit q to continue working.1



              1With some practice you will be able to drop the -P flag since you can predict the session:window.pane triplet: session defaults to the current session and pane defaults to 0 while window will be the next free window identifier.



              Get Pane 3 back:



              To get pane 3 and the layout back, select pane 2 and issue Prefix-:join-pane -vs 1:2.0 telling tmux to split pane 2 vertically (-v) and to join the (source) pane (-s) with identifier 1:2.0. Optionally, you can drop either the session or the pane identifier. Note also that tmux stores a command line history, conveniently accessible with Prefix-:-Up.



              You'll probably need some time to get the hang of it, but once you do, you'll surely be able to come up with custom key bindings that are convenient for you.





              This question contains some useful information and tricks that might improve your workflow.






              share|improve this answer


























              • Clear instructions! Works smoothly for me, much better than my answer!

                – Bernhard
                Jul 22 '14 at 8:55











              • By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

                – CodyChan
                Oct 19 '15 at 3:40


















              65














              Use the break-pane and join-pane commands. Refer to man tmux for details, options and usage.





              Hide Pane 3:



              Select pane 3 and enter Prefix-:break-pane -dP.



              tmux will send pane 3 to a window in the background (the -d flag) and print some information about it in pane 2 (the -P flag). By default you'll see something like 1:2.0 (meaning: session:window.pane). Hit q to continue working.1



              1With some practice you will be able to drop the -P flag since you can predict the session:window.pane triplet: session defaults to the current session and pane defaults to 0 while window will be the next free window identifier.



              Get Pane 3 back:



              To get pane 3 and the layout back, select pane 2 and issue Prefix-:join-pane -vs 1:2.0 telling tmux to split pane 2 vertically (-v) and to join the (source) pane (-s) with identifier 1:2.0. Optionally, you can drop either the session or the pane identifier. Note also that tmux stores a command line history, conveniently accessible with Prefix-:-Up.



              You'll probably need some time to get the hang of it, but once you do, you'll surely be able to come up with custom key bindings that are convenient for you.





              This question contains some useful information and tricks that might improve your workflow.






              share|improve this answer


























              • Clear instructions! Works smoothly for me, much better than my answer!

                – Bernhard
                Jul 22 '14 at 8:55











              • By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

                – CodyChan
                Oct 19 '15 at 3:40
















              65












              65








              65







              Use the break-pane and join-pane commands. Refer to man tmux for details, options and usage.





              Hide Pane 3:



              Select pane 3 and enter Prefix-:break-pane -dP.



              tmux will send pane 3 to a window in the background (the -d flag) and print some information about it in pane 2 (the -P flag). By default you'll see something like 1:2.0 (meaning: session:window.pane). Hit q to continue working.1



              1With some practice you will be able to drop the -P flag since you can predict the session:window.pane triplet: session defaults to the current session and pane defaults to 0 while window will be the next free window identifier.



              Get Pane 3 back:



              To get pane 3 and the layout back, select pane 2 and issue Prefix-:join-pane -vs 1:2.0 telling tmux to split pane 2 vertically (-v) and to join the (source) pane (-s) with identifier 1:2.0. Optionally, you can drop either the session or the pane identifier. Note also that tmux stores a command line history, conveniently accessible with Prefix-:-Up.



              You'll probably need some time to get the hang of it, but once you do, you'll surely be able to come up with custom key bindings that are convenient for you.





              This question contains some useful information and tricks that might improve your workflow.






              share|improve this answer















              Use the break-pane and join-pane commands. Refer to man tmux for details, options and usage.





              Hide Pane 3:



              Select pane 3 and enter Prefix-:break-pane -dP.



              tmux will send pane 3 to a window in the background (the -d flag) and print some information about it in pane 2 (the -P flag). By default you'll see something like 1:2.0 (meaning: session:window.pane). Hit q to continue working.1



              1With some practice you will be able to drop the -P flag since you can predict the session:window.pane triplet: session defaults to the current session and pane defaults to 0 while window will be the next free window identifier.



              Get Pane 3 back:



              To get pane 3 and the layout back, select pane 2 and issue Prefix-:join-pane -vs 1:2.0 telling tmux to split pane 2 vertically (-v) and to join the (source) pane (-s) with identifier 1:2.0. Optionally, you can drop either the session or the pane identifier. Note also that tmux stores a command line history, conveniently accessible with Prefix-:-Up.



              You'll probably need some time to get the hang of it, but once you do, you'll surely be able to come up with custom key bindings that are convenient for you.





              This question contains some useful information and tricks that might improve your workflow.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 3 at 19:16









              alehresmann

              53




              53










              answered Jul 22 '14 at 8:23









              user78291user78291

              66653




              66653













              • Clear instructions! Works smoothly for me, much better than my answer!

                – Bernhard
                Jul 22 '14 at 8:55











              • By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

                – CodyChan
                Oct 19 '15 at 3:40





















              • Clear instructions! Works smoothly for me, much better than my answer!

                – Bernhard
                Jul 22 '14 at 8:55











              • By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

                – CodyChan
                Oct 19 '15 at 3:40



















              Clear instructions! Works smoothly for me, much better than my answer!

              – Bernhard
              Jul 22 '14 at 8:55





              Clear instructions! Works smoothly for me, much better than my answer!

              – Bernhard
              Jul 22 '14 at 8:55













              By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

              – CodyChan
              Oct 19 '15 at 3:40







              By default, the pane 3 will be broken into the last window, if you got 3 windows already in the current session, the pane will become Window 3(assume window starts from 0), so the 3 in "Window 3" depends on the the opened windows, how can I make this work in customed key bindings?

              – CodyChan
              Oct 19 '15 at 3:40















              4














              An idea: run tmux in tmux.



              Original set up:



              Pane 1 and pane 2; side by side. Run vim in Pane 1 as normal.



              In pane 2, run tmux again and create two panes (one on top of the other this time). Then run vim in pane 2.1 and your CLI in pane 2.2. This should allow you to full screen pane 2.1 with your second instance of Vim resulting in the behaviour you want.






              share|improve this answer


























              • this is what I call out of box thinking !

                – user881300
                Jun 23 '16 at 0:14











              • Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

                – BinaryBen
                Jun 23 '16 at 7:18






              • 1





                @user881300 Technically, this is box in the box thinking.

                – Mateen Ulhaq
                Nov 1 '18 at 19:04
















              4














              An idea: run tmux in tmux.



              Original set up:



              Pane 1 and pane 2; side by side. Run vim in Pane 1 as normal.



              In pane 2, run tmux again and create two panes (one on top of the other this time). Then run vim in pane 2.1 and your CLI in pane 2.2. This should allow you to full screen pane 2.1 with your second instance of Vim resulting in the behaviour you want.






              share|improve this answer


























              • this is what I call out of box thinking !

                – user881300
                Jun 23 '16 at 0:14











              • Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

                – BinaryBen
                Jun 23 '16 at 7:18






              • 1





                @user881300 Technically, this is box in the box thinking.

                – Mateen Ulhaq
                Nov 1 '18 at 19:04














              4












              4








              4







              An idea: run tmux in tmux.



              Original set up:



              Pane 1 and pane 2; side by side. Run vim in Pane 1 as normal.



              In pane 2, run tmux again and create two panes (one on top of the other this time). Then run vim in pane 2.1 and your CLI in pane 2.2. This should allow you to full screen pane 2.1 with your second instance of Vim resulting in the behaviour you want.






              share|improve this answer















              An idea: run tmux in tmux.



              Original set up:



              Pane 1 and pane 2; side by side. Run vim in Pane 1 as normal.



              In pane 2, run tmux again and create two panes (one on top of the other this time). Then run vim in pane 2.1 and your CLI in pane 2.2. This should allow you to full screen pane 2.1 with your second instance of Vim resulting in the behaviour you want.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jun 21 '16 at 9:59









              jimmij

              33k877112




              33k877112










              answered Jun 21 '16 at 9:35









              BinaryBenBinaryBen

              411




              411













              • this is what I call out of box thinking !

                – user881300
                Jun 23 '16 at 0:14











              • Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

                – BinaryBen
                Jun 23 '16 at 7:18






              • 1





                @user881300 Technically, this is box in the box thinking.

                – Mateen Ulhaq
                Nov 1 '18 at 19:04



















              • this is what I call out of box thinking !

                – user881300
                Jun 23 '16 at 0:14











              • Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

                – BinaryBen
                Jun 23 '16 at 7:18






              • 1





                @user881300 Technically, this is box in the box thinking.

                – Mateen Ulhaq
                Nov 1 '18 at 19:04

















              this is what I call out of box thinking !

              – user881300
              Jun 23 '16 at 0:14





              this is what I call out of box thinking !

              – user881300
              Jun 23 '16 at 0:14













              Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

              – BinaryBen
              Jun 23 '16 at 7:18





              Thanks user881300. It has some flaws (being able to send commands has a few quirks for e.g.). I hope to update this into a more complete answer once I have tested it - I need similar functionality myself.

              – BinaryBen
              Jun 23 '16 at 7:18




              1




              1





              @user881300 Technically, this is box in the box thinking.

              – Mateen Ulhaq
              Nov 1 '18 at 19:04





              @user881300 Technically, this is box in the box thinking.

              – Mateen Ulhaq
              Nov 1 '18 at 19:04











              3














              Instead of hiding pane 3, you could also cheat a bit, and make it very small, which will probably also work for your case.



              When pane 2 is the active pane you can



              PREFIX : resize-pane -D 40


              Then, to move it up again, you can either



              PREFIX : resize-pane -D 28


              where you would have to replace 28 with a decent number, or, instead, you could try PREFIXEsc4, which does automatic resizing.






              share|improve this answer
























              • I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

                – user881300
                Jul 22 '14 at 8:13











              • @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

                – Bernhard
                Jul 22 '14 at 8:15






              • 1





                CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

                – FelikZ
                Aug 30 '15 at 9:03


















              3














              Instead of hiding pane 3, you could also cheat a bit, and make it very small, which will probably also work for your case.



              When pane 2 is the active pane you can



              PREFIX : resize-pane -D 40


              Then, to move it up again, you can either



              PREFIX : resize-pane -D 28


              where you would have to replace 28 with a decent number, or, instead, you could try PREFIXEsc4, which does automatic resizing.






              share|improve this answer
























              • I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

                – user881300
                Jul 22 '14 at 8:13











              • @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

                – Bernhard
                Jul 22 '14 at 8:15






              • 1





                CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

                – FelikZ
                Aug 30 '15 at 9:03
















              3












              3








              3







              Instead of hiding pane 3, you could also cheat a bit, and make it very small, which will probably also work for your case.



              When pane 2 is the active pane you can



              PREFIX : resize-pane -D 40


              Then, to move it up again, you can either



              PREFIX : resize-pane -D 28


              where you would have to replace 28 with a decent number, or, instead, you could try PREFIXEsc4, which does automatic resizing.






              share|improve this answer













              Instead of hiding pane 3, you could also cheat a bit, and make it very small, which will probably also work for your case.



              When pane 2 is the active pane you can



              PREFIX : resize-pane -D 40


              Then, to move it up again, you can either



              PREFIX : resize-pane -D 28


              where you would have to replace 28 with a decent number, or, instead, you could try PREFIXEsc4, which does automatic resizing.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jul 22 '14 at 7:10









              BernhardBernhard

              7,95534468




              7,95534468













              • I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

                – user881300
                Jul 22 '14 at 8:13











              • @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

                – Bernhard
                Jul 22 '14 at 8:15






              • 1





                CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

                – FelikZ
                Aug 30 '15 at 9:03





















              • I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

                – user881300
                Jul 22 '14 at 8:13











              • @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

                – Bernhard
                Jul 22 '14 at 8:15






              • 1





                CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

                – FelikZ
                Aug 30 '15 at 9:03



















              I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

              – user881300
              Jul 22 '14 at 8:13





              I was resizing the pane using set -g mouse-resize-pane on but other than resizing do we have any other option ?

              – user881300
              Jul 22 '14 at 8:13













              @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

              – Bernhard
              Jul 22 '14 at 8:15





              @user881300 I am not a tmux expert by any means, but I would be curious to learn if this is possible.

              – Bernhard
              Jul 22 '14 at 8:15




              1




              1





              CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

              – FelikZ
              Aug 30 '15 at 9:03







              CTRL+B, ALT+<arrow direction to resize>, than CTRL+B, ESC, 4 (thx @Bernhard) to restore it.

              – FelikZ
              Aug 30 '15 at 9:03













              0














              I now this question is almost 5 years old but I just found it because I wanted to do something similar and I came up with the following keybindings thanks to user78291's answer:



              bind-key ! break-pane -d -n _hidden_pane
              bind-key @ join-pane -s $.1


              This way, I can use Prefix! to hide the current pane and Prefix@ to bring it back. The nice part is that I can hide multiple panes this way.



              It's far from perfect, but it does the job of hiding panes and bringing them back quite well.






              share|improve this answer




























                0














                I now this question is almost 5 years old but I just found it because I wanted to do something similar and I came up with the following keybindings thanks to user78291's answer:



                bind-key ! break-pane -d -n _hidden_pane
                bind-key @ join-pane -s $.1


                This way, I can use Prefix! to hide the current pane and Prefix@ to bring it back. The nice part is that I can hide multiple panes this way.



                It's far from perfect, but it does the job of hiding panes and bringing them back quite well.






                share|improve this answer


























                  0












                  0








                  0







                  I now this question is almost 5 years old but I just found it because I wanted to do something similar and I came up with the following keybindings thanks to user78291's answer:



                  bind-key ! break-pane -d -n _hidden_pane
                  bind-key @ join-pane -s $.1


                  This way, I can use Prefix! to hide the current pane and Prefix@ to bring it back. The nice part is that I can hide multiple panes this way.



                  It's far from perfect, but it does the job of hiding panes and bringing them back quite well.






                  share|improve this answer













                  I now this question is almost 5 years old but I just found it because I wanted to do something similar and I came up with the following keybindings thanks to user78291's answer:



                  bind-key ! break-pane -d -n _hidden_pane
                  bind-key @ join-pane -s $.1


                  This way, I can use Prefix! to hide the current pane and Prefix@ to bring it back. The nice part is that I can hide multiple panes this way.



                  It's far from perfect, but it does the job of hiding panes and bringing them back quite well.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 13 at 15:03









                  Filipe KissFilipe Kiss

                  12




                  12























                      0














                      I know this does not actually hide the pane you are working on but I was trying to do this to stop tmux from sending common commands to selected windows and got to a much simpler solution.



                      If you don't want to visually hide the pane but just want to stop any input going to the pane. A scenario could be you want to send a command to 5 open panes but don't want to send it to 2 of them.



                      In this use case you can do
                      ctrl + s on the panes that you don't want the commands to go to (ctrl + s locks all input to the pane).



                      Once you are done, press ctrl + c to come back out.



                      Note : Dont press ctrl + q after the commands as it will run all the commands on that screen. ctrl + c will not do this (tried this on Ubuntu).






                      share|improve this answer








                      New contributor



                      Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
























                        0














                        I know this does not actually hide the pane you are working on but I was trying to do this to stop tmux from sending common commands to selected windows and got to a much simpler solution.



                        If you don't want to visually hide the pane but just want to stop any input going to the pane. A scenario could be you want to send a command to 5 open panes but don't want to send it to 2 of them.



                        In this use case you can do
                        ctrl + s on the panes that you don't want the commands to go to (ctrl + s locks all input to the pane).



                        Once you are done, press ctrl + c to come back out.



                        Note : Dont press ctrl + q after the commands as it will run all the commands on that screen. ctrl + c will not do this (tried this on Ubuntu).






                        share|improve this answer








                        New contributor



                        Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          0












                          0








                          0







                          I know this does not actually hide the pane you are working on but I was trying to do this to stop tmux from sending common commands to selected windows and got to a much simpler solution.



                          If you don't want to visually hide the pane but just want to stop any input going to the pane. A scenario could be you want to send a command to 5 open panes but don't want to send it to 2 of them.



                          In this use case you can do
                          ctrl + s on the panes that you don't want the commands to go to (ctrl + s locks all input to the pane).



                          Once you are done, press ctrl + c to come back out.



                          Note : Dont press ctrl + q after the commands as it will run all the commands on that screen. ctrl + c will not do this (tried this on Ubuntu).






                          share|improve this answer








                          New contributor



                          Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          I know this does not actually hide the pane you are working on but I was trying to do this to stop tmux from sending common commands to selected windows and got to a much simpler solution.



                          If you don't want to visually hide the pane but just want to stop any input going to the pane. A scenario could be you want to send a command to 5 open panes but don't want to send it to 2 of them.



                          In this use case you can do
                          ctrl + s on the panes that you don't want the commands to go to (ctrl + s locks all input to the pane).



                          Once you are done, press ctrl + c to come back out.



                          Note : Dont press ctrl + q after the commands as it will run all the commands on that screen. ctrl + c will not do this (tried this on Ubuntu).







                          share|improve this answer








                          New contributor



                          Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share|improve this answer



                          share|improve this answer






                          New contributor



                          Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          answered 24 mins ago









                          Fake Jon Skeet Fake Jon Skeet

                          1012




                          1012




                          New contributor



                          Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.




                          New contributor




                          Fake Jon Skeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.
































                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145857%2fhow-do-you-hide-a-tmux-pane%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                              Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                              Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...