6474ce25ef1e

Stuff.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Dec 2011 17:22:31 -0500
parents 5a5bcdfd8b54
children cdc806ed84ad
branches/tags (none)
files dotcss/unisubs.sifterapp.com.css weechat/perl/autoload/colorize_lines.pl weechat/python/autoload/colon_complete.py weechat/weechat.conf

Changes

--- a/dotcss/unisubs.sifterapp.com.css	Tue Dec 06 13:53:26 2011 -0500
+++ b/dotcss/unisubs.sifterapp.com.css	Fri Dec 09 17:22:31 2011 -0500
@@ -1,19 +1,19 @@
 #switcher {
     display: none !important;
 }
-.meta a {
+.issue .meta a {
     color: #666 !important;
 }
-.meta {
+.issue .meta {
     display: none !important;
 }
-ul.people {
+.issue ul.people {
     margin-top: 13px !important;
 }
-ul.people li:nth-child(2) {
+.issue ul.people li:nth-child(2) {
     display: none;
 }
-.new-priority {
+.issue .new-priority {
     padding-left: 6px !important;
 }
 .issue h2 {
--- a/weechat/perl/autoload/colorize_lines.pl	Tue Dec 06 13:53:26 2011 -0500
+++ b/weechat/perl/autoload/colorize_lines.pl	Fri Dec 09 17:22:31 2011 -0500
@@ -200,6 +200,7 @@
 	      }
       }
 	# buffer_autoset is off.
+    # TODO: Fix "all:" and "all," highlighting
 	if (lc($string) =~ m/(\w.*$my_nick.*)/){						# my name called in string (case insensitiv)?
 	    my $color_highlight = weechat::config_color(weechat::config_get("weechat.color.chat_highlight"));
 	    my $color_highlight_bg = weechat::config_color(weechat::config_get("weechat.color.chat_highlight_bg"));
--- a/weechat/python/autoload/colon_complete.py	Tue Dec 06 13:53:26 2011 -0500
+++ b/weechat/python/autoload/colon_complete.py	Fri Dec 09 17:22:31 2011 -0500
@@ -43,6 +43,13 @@
                     weechat.command(buffer, "/input delete_previous_char")
                 weechat.command(buffer, "/input insert " + nicks[-1] + ":\\x20")
             elif len(nicks) > 1:
+                l = min(len(nick) for nick in nicks)
+                for i in range(len(prefix), l):
+                    if len(set(nick[i] for nick in nicks)) > 1:
+                        break
+                    else:
+                        weechat.command(buffer, "/input insert " + nicks[0][i])
+
                 for nick in nicks:
                     weechat.prnt(cb, "==> " + nick)
                 return weechat.WEECHAT_RC_OK_EAT
--- a/weechat/weechat.conf	Tue Dec 06 13:53:26 2011 -0500
+++ b/weechat/weechat.conf	Fri Dec 09 17:22:31 2011 -0500
@@ -21,7 +21,7 @@
 day_change = on
 day_change_time_format = "%a, %d %b %Y"
 highlight = "sjl"
-highlight_regex = "sjl"
+highlight_regex = "(sjl|^all,|^all:)"
 highlight_tags = ""
 hline_char = "-"
 hotlist_add_buffer_if_away = on