From 141b1952a2063d554212ab9f0830eff6c8cebf97 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 17 Nov 2020 20:25:16 -0500 Subject: weechat 3.0 changes, updated autojoins --- weechat/.weechat/python/autosort.py | 9 ++++----- weechat/.weechat/python/grep.py | 7 ++++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'weechat/.weechat/python') diff --git a/weechat/.weechat/python/autosort.py b/weechat/.weechat/python/autosort.py index 0d76d42..4312cda 100644 --- a/weechat/.weechat/python/autosort.py +++ b/weechat/.weechat/python/autosort.py @@ -25,6 +25,8 @@ # # Changelog: +# 3.9: +# * Remove `buffers.pl` from recommended settings. # 3,8: # * Fix relative sorting on script name in default rules. # * Document a useful property of stable sort algorithms. @@ -85,7 +87,7 @@ import weechat SCRIPT_NAME = 'autosort' SCRIPT_AUTHOR = 'Maarten de Vries ' -SCRIPT_VERSION = '3.8' +SCRIPT_VERSION = '3.9' SCRIPT_LICENSE = 'GPL3' SCRIPT_DESC = 'Flexible automatic (or manual) buffer sorting based on eval expressions.' @@ -1000,12 +1002,9 @@ If you remove all signals you can still sort your buffers manually with the {*white}# Recommended settings For the best visual effect, consider setting the following options: {*white}/set {cyan}irc.look.server_buffer{reset} {brown}independent{reset} - {*white}/set {cyan}buffers.look.indenting{reset} {brown}on{reset} -The first setting allows server buffers to be sorted independently, which is +This setting allows server buffers to be sorted independently, which is needed to create a hierarchical tree view of the server and channel buffers. -The second one indents channel and private buffers in the buffer list of the -`{*default}buffers.pl{reset}` script. If you are using the {*default}buflist{reset} plugin you can (ab)use Unicode to draw a tree structure with the following setting (modify to suit your need): diff --git a/weechat/.weechat/python/grep.py b/weechat/.weechat/python/grep.py index c176ffe..7fd1bc8 100644 --- a/weechat/.weechat/python/grep.py +++ b/weechat/.weechat/python/grep.py @@ -68,6 +68,8 @@ # # # History: +# 2020-10-11, Thom Wiggers +# version 0.8.4: Python3 compatibility fix # # 2020-05-06, Dominique Martinet and hexa- # version 0.8.3: more python3 compatibility fixes... @@ -233,7 +235,7 @@ except ImportError: SCRIPT_NAME = "grep" SCRIPT_AUTHOR = "Elián Hanisch " -SCRIPT_VERSION = "0.8.3" +SCRIPT_VERSION = "0.8.4" SCRIPT_LICENSE = "GPL3" SCRIPT_DESC = "Search in buffers and logs" SCRIPT_COMMAND = "grep" @@ -891,8 +893,7 @@ def grep_buffer(buffer, head, tail, after_context, before_context, count, regexp check = lambda s: check_string(s, regexp, hilight, exact) if before_context: - before_context_range = range(1, before_context + 1) - before_context_range.reverse() + before_context_range = reversed(range(1, before_context + 1)) while infolist_next(infolist): line = get_line(infolist) -- cgit 1.4.1