Is it possible to add tab-like functionality in the tmux panel?

Usually I use tmux with 3-4 panels open. One of these panels is rarely used, so I will be happy to hide it somewhere. I suppose I could do it in a new window, but I would rather hide it "behind" the existing panel.

For example, I would like to keep the rails server in the background, because I rarely have to refer to it, so guard occupies this area. When I need to see the output of the rails server , I switch to the guard panel, and then "tab" to the rails server .

At least this is an ideal situation, but I cannot figure out how to achieve it.

+5
source share
3 answers

Tmux does not currently provide “hide” panels functionality.

Currently, the closest tmux is suitable for hiding panels - this is the "panel scaling" functionality. It switches using prefix + z . When 'on', the panel changes to 100% of the window, and all other panels are hidden. Setting panel scaling to off Hides hidden panels.

However, I think the “scaling” functionality is not ideal for your use case. Others have pointed this out: just using a new window that doesn't bother you can do the trick and is a simple solution.

+5
source

You must do this using break-pane and join-pane - see this question on Unix & Linux .

0
source

I'm not sure what the concept of "tab" is in your head; however, from what you want, windows are more than enough.

Imagine that you have a “tab” in tmux, then you more or less need to switch to this tab to see the result, so the operation is exactly the same as in the tmux window.

Usually I type <cx> c to have a new window, and then return to the main workspace (previous window) with <cx> p and open my vim there to work. I could have several panels in my main workspace using the tmux panel (not with the vim area, because I need the terminal to always orient). Then, after I changed everything, save, just enter another <cx> p to go to the server and see what happens there.

(note that I am binding <cb> to <cx> )

0
source

Source: https://habr.com/ru/post/1202542/


All Articles