Add an option to choose between shared and separate input history

- separate_history, defaults to false
This commit is contained in:
mathieui 2013-04-04 01:11:56 +02:00
parent 8a5a5bb644
commit 26fa83dd9a
3 changed files with 11 additions and 0 deletions

View file

@ -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.

View file

@ -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 wont be shared
between tabs (as in weechat).
*server*:: anon.jeproteste.info
The server to use for anonymous authentication.

View file

@ -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: