aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2015-08-12 08:55:20 +0000
committernicm <nicm>2015-08-12 08:55:20 +0000
commit13b7fd82c12ff2a0812d2b378a49011c12028796 (patch)
tree5b9fe04a12b1a97d5f0e46a5dcf255a2acaef9fb
parent5ec3621101e13e9032d1871f02883757b18d51ac (diff)
downloadrtmux-13b7fd82c12ff2a0812d2b378a49011c12028796.tar.gz
rtmux-13b7fd82c12ff2a0812d2b378a49011c12028796.tar.bz2
rtmux-13b7fd82c12ff2a0812d2b378a49011c12028796.zip
Rename left/right/up/down relative to active pane to add -of suffix
(left-of/right-of/etc) to remove conflict with left/right meaning leftmost or rightmost pane. From Ben Boeckel.
-rw-r--r--cmd-find.c8
-rw-r--r--tmux.18
2 files changed, 8 insertions, 8 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 5e0b1dbb..4adfe681 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -102,10 +102,10 @@ const char *cmd_find_pane_table[][2] = {
{ "{top-right}", "top-right" },
{ "{bottom-left}", "bottom-left" },
{ "{bottom-right}", "bottom-right" },
- { "{up}", "{up}" },
- { "{down}", "{down}" },
- { "{left}", "{left}" },
- { "{right}", "{right}" },
+ { "{up-of}", "{up}" },
+ { "{down-of}", "{down}" },
+ { "{left-of}", "{left}" },
+ { "{right-up}", "{right}" },
{ NULL, NULL }
};
diff --git a/tmux.1 b/tmux.1
index a4422057..19f2af36 100644
--- a/tmux.1
+++ b/tmux.1
@@ -496,10 +496,10 @@ The following special tokens are available for the pane index:
.It Li "{top-right}" Ta "" Ta "The top-right pane"
.It Li "{bottom-left}" Ta "" Ta "The bottom-left pane"
.It Li "{bottom-right}" Ta "" Ta "The bottom-right pane"
-.It Li "{up}" Ta "" Ta "The pane above the active pane"
-.It Li "{down}" Ta "" Ta "The pane below the active pane"
-.It Li "{left}" Ta "" Ta "The pane to the left of the active pane"
-.It Li "{right}" Ta "" Ta "The pane to the right of the active pane"
+.It Li "{up-of}" Ta "" Ta "The pane above the active pane"
+.It Li "{down-of}" Ta "" Ta "The pane below the active pane"
+.It Li "{left-of}" Ta "" Ta "The pane to the left of the active pane"
+.It Li "{right-of}" Ta "" Ta "The pane to the right of the active pane"
.El
.Pp
The tokens