]> git.rmz.io Git - dotfiles.git/blobdiff - weechat/python/go.py
vim: do not set pastetoggle in nvim
[dotfiles.git] / weechat / python / go.py
index 25041a8079665e5a59961624cb17ebf78ce7b4c3..c4f7f8ed55b2692acf8270a7fc4a56e8216bcc97 100644 (file)
 #
 # History:
 #
+# 2024-05-30, Sébastien Helleu <flashcode@flashtux.org>:
+#     version 3.0.1: refresh buffer input at the end of search
+# 2024-05-30, Sébastien Helleu <flashcode@flashtux.org>:
+#     version 3.0: refresh immediately buffer input when /go command is executed
+#                  (needed for WeeChat >= 4.3.0)
 # 2023-06-21, Sébastien Helleu <flashcode@flashtux.org>:
 #     version 2.9: add option "min_chars"
 # 2023-01-08, Sébastien Helleu <flashcode@flashtux.org>:
@@ -100,7 +105,7 @@ from __future__ import print_function
 
 SCRIPT_NAME = 'go'
 SCRIPT_AUTHOR = 'Sébastien Helleu <flashcode@flashtux.org>'
-SCRIPT_VERSION = '2.9'
+SCRIPT_VERSION = '3.0.1'
 SCRIPT_LICENSE = 'GPL3'
 SCRIPT_DESC = 'Quick jump to buffers'
 
@@ -215,6 +220,7 @@ def go_unhook_all():
     go_unhook_one('modifier')
     for hook in HOOK_COMMAND_RUN:
         go_unhook_one(hook)
+    weechat.bar_item_update('input_text')
 
 
 def go_hook_all():
@@ -234,6 +240,7 @@ def go_hook_all():
     if 'modifier' not in hooks:
         hooks['modifier'] = weechat.hook_modifier(
             'input_text_display_with_cursor', 'go_input_modifier', '')
+        weechat.bar_item_update('input_text')
 
 
 def go_start(buf):