diff options
author | Jonas Schäfer <j.wielicki@sotecware.net> | 2020-05-10 11:21:56 +0200 |
---|---|---|
committer | Jonas Schäfer <j.wielicki@sotecware.net> | 2020-05-12 22:26:51 +0200 |
commit | eab4615fe046d40aefdf4cd18643f99183fc4aba (patch) | |
tree | 64532b6b07f693401ebfea56a7031f55afda1b94 /poezio/core/tabs.py | |
parent | c1863addfd33d3d3f3f03bcb036a0966097914cb (diff) | |
download | poezio-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 'poezio/core/tabs.py')
-rw-r--r-- | poezio/core/tabs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/core/tabs.py b/poezio/core/tabs.py index c5ecb206..d5909d39 100644 --- a/poezio/core/tabs.py +++ b/poezio/core/tabs.py @@ -29,6 +29,7 @@ from collections import defaultdict from slixmpp import JID from poezio import tabs from poezio.events import EventHandler +from poezio.config import config class Tabs: |