Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - please allow to merge two panes back together from same window #918

Closed
mdeguzis opened this issue May 9, 2017 · 6 comments
Closed

Comments

@mdeguzis
Copy link

mdeguzis commented May 9, 2017

  • your platform: Linux
  • a brief description of the problem with steps to reproduce; split a window into 4 panes, try to merge panel with the one next to it. Essentially "undo" a split.
  • your terminal, and $TERM inside and outside of tmux; putty, xterm (outside), screen (inside)

I wish to merge 3 and 4 after 3 was split vertically or otherwise.


| 1 | 2 |
| 3 | 4 |

@nicm
Copy link
Member

nicm commented May 9, 2017

kill-pane?

@mdeguzis
Copy link
Author

mdeguzis commented May 9, 2017

That just exists the pane. When you have different splits, you cannot merge offset panes. If the splits align, it'd be nice to be able to marge

On resize horizontal

|   1   |   2   |
|  3  |    4    |

If the vertical div aligns..

|   1   |   2   |
|   3   |   4   |

Allow merge 3 and 4 for:

|   1   |   2   |
|        3       |

@nicm
Copy link
Member

nicm commented May 9, 2017

What's the difference between killing a pane, which will merge the empty space with another, and what you are describing?

@mdeguzis
Copy link
Author

mdeguzis commented May 9, 2017

If you start with a horizontal line, then split vertical on the top half, yes that works. However, this scenario does not work.

|   1   |   2   |

divide pane two to create 3

|   1   |   2   |
|   1   |   3   |

divide 1 to get 4

|   1   |   2   |
|   4   |   3   |

Try to merge 4 and 3 to this:

|   1   |   2   |
|        3       |

That last part cannot be done (at least that I can tell). Which means, if you didn't rearrange first, or pre-plan with a horizontal divide first instead of vertical, you can't make it work. I work around this by PREFIX+SPACE to jumble things, then PREFIX+ [ or ] to swap the panes around.

@nicm
Copy link
Member

nicm commented May 9, 2017

OK, added to TODO file, thanks.

@lock
Copy link

lock bot commented Feb 16, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants