Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Horizontal and vertical window splitting are reversed #213
You mean that's intentional? The man page states:
...Create a new pane by splitting target-pane: -h does a horizontal split and -v a vertical split...
The "split" is the line dividing the window. Either that line goes left to right (like the x-axis, which is a horizontal division/"split") or up and down (like the y-axis, which is a vertical division/"split").
Horizontal is defined as "parallel to the plane of the horizon; level; flat" and vertical is "at right angles to the horizon; perpendicular; upright". Those are dictionary definitions (British Dictionary). Tmux even has the "h" and the "v" as the letters for those options making it even more misleading. They go directly against the meaning of the words they are supposed to represent.
Why the reluctance in making these commands match their definition?
You are misinformed. The "split" is not the line dividing the window, and neither we nor the dictionary define it as so. "Split" means the act of splitting the window into two. When you split horizontally, you divide into two along the horizontal axis; vertically, along the vertical axis. The meaning of these flags is not going to change.
I see. A "line" created on the x-axis will be vertical and a "line" created on the y-axis will be horizontal.
Neither of us is "wrong", but since my perspective is very common, it's reflective of what's normally expected even though your perspective is correct at a technical level. My perspective sees it in the same sense as a horizontal/vertical incision, so the split (line) wouldn't go along the axis, the split would be a representation of the axis itself.
Tmux's method, though correct, goes against the grain compared to other terminal splitting applications I'm used to. Without knowing the reason behind tmux's behavior, it's easy to conclude that something is wrong.