summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-04-04 01:11:56 +0200
committermathieui <mathieui@mathieui.net>2013-04-04 01:11:56 +0200
commit26fa83dd9a1d0f3a43efc706582ea93980289f71 (patch)
tree28aa5bd1ccaed364979b73389f216156b1d6814d
parent8a5a5bb644998fe03d8ab90d714c21d1552171a2 (diff)
downloadpoezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.gz
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.bz2
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.xz
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.zip
Add an option to choose between shared and separate input history
- separate_history, defaults to false
-rw-r--r--data/default_config.cfg4
-rw-r--r--doc/en/configure.txt5
-rw-r--r--src/windows.py2
3 files changed, 11 insertions, 0 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg
index 05e00ce2..6e2f02ec 100644
--- a/data/default_config.cfg
+++ b/data/default_config.cfg
@@ -403,6 +403,10 @@ send_os_info = true
# Set to false if you don't want people to know that information
send_time = true
+# If true, the history of the similar inputs won't be shared between
+# different tabs (as in weechat).
+separate_history = false
+
# The language you specify using.
# This *may* be ysed by an automated entity to send you tailored replies
# If you don't understand, leave en.
diff --git a/doc/en/configure.txt b/doc/en/configure.txt
index 76a6b5b4..def86e7f 100644
--- a/doc/en/configure.txt
+++ b/doc/en/configure.txt
@@ -409,6 +409,11 @@ section of this documentation.
if true, your current time will be sent if asked
Set to false if you don't want people to know that information
+*separate_history*:: false
+
+ If true, the history of inputs of the same nature won’t be shared
+ between tabs (as in weechat).
+
*server*:: anon.jeproteste.info
The server to use for anonymous authentication.
diff --git a/src/windows.py b/src/windows.py
index 56eb3ab4..b612e20d 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1508,6 +1508,8 @@ class HistoryInput(Input):
self.current_completed = ''
self.key_func['^R'] = self.toggle_search
self.search = False
+ if config.get('separate_history', 'false') == 'true':
+ self.history = list()
def toggle_search(self):
if self.help_message: