summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonas Schäfer <j.wielicki@sotecware.net>2020-05-10 11:21:56 +0200
committerJonas Schäfer <j.wielicki@sotecware.net>2020-05-12 22:26:51 +0200
commiteab4615fe046d40aefdf4cd18643f99183fc4aba (patch)
tree64532b6b07f693401ebfea56a7031f55afda1b94 /doc
parentc1863addfd33d3d3f3f03bcb036a0966097914cb (diff)
downloadpoezio-eab4615fe046d40aefdf4cd18643f99183fc4aba.tar.gz
poezio-eab4615fe046d40aefdf4cd18643f99183fc4aba.tar.bz2
poezio-eab4615fe046d40aefdf4cd18643f99183fc4aba.tar.xz
poezio-eab4615fe046d40aefdf4cd18643f99183fc4aba.zip
Add /wup command
The `/wup` command selects a tab by the prefix of its name only. The `/win` will do a substring match based on the first tab going from the current tab which matches the substring. This can be confusing, especially since `/win` matches on different types of tab "names" not only on the name which is shown in the info bar by default. The `/wup` command exclusively matches based on the prefix of the tab.name string. This has the advantage that it is consistent, deterministic and independent of the currently selected tab.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/commands.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index dab2eceb..5ea69abd 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -93,6 +93,15 @@ These commands work in *any* tab.
Go to the matching tab. If the argument is a number, it goes to the tab with that number.
Otherwise, it goes to the next tab whose name contains the given string.
+ /wup
+
+ **Usage:** ``/wup <prefix>``
+
+ Go to the tab whose name starts with `prefix`. If multiple tabs start
+ with that prefix, no action is taken.
+
+ (Mnemonic: Window by Unique Prefix)
+
/status
**Usage:** ``/status <availability> [status message]``