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: