Recent activity

Re: [PATCH 2/2] extended color scheme: detect background color & vary lightness 2 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

I think this actually shows pretty well why this is needed: I adjusted
the max/min lightness values a little bit, and the difference is
quite staggering. My initial values were off; I don't think they should
necessarily be configurable, but they can make a big difference.

diff --git a/ui/colors.go b/ui/colors.go
index b99762b..7fe0b1f 100644
--- a/ui/colors.go
+++ b/ui/colors.go
@@ -98,9 +98,9 @@ func (ui UI) IdentColor(scheme ColorScheme, ident string, self bool) vaxis.Color
		var light float64
		switch ui.colorThemeMode {
		case vaxis.DarkMode:
			light = mapToRange(uint16(sum >> 16), 0, math.MaxUint16, 0.6, 1.0)
[message trimmed]

[PATCH 2/2] extended color scheme: detect background color & vary lightness 2 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

humans can detect lightness differences pretty well, so it makes sense
to vary color selection in that dimension too.
---
 app.go       |  8 ++++----
 ui/colors.go | 27 ++++++++++++++++++++-------
 ui/ui.go     | 15 ++++++++++++++-
 3 files changed, 38 insertions(+), 12 deletions(-)

diff --git a/app.go b/app.go
index 2de6d95..91530d3 100644
--- a/app.go
+++ b/app.go
@@ -1994,12 +1994,12 @@ func (app *App) formatMessage(s *irc.Session, ev irc.MessageEvent) (buffer strin
	if isAction || isNotice {
[message trimmed]

[PATCH] extended color scheme: use rgb colors 2 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

---
 ui/colors.go | 83 ++++++++++++++++++++++++++++------------------------
 1 file changed, 45 insertions(+), 38 deletions(-)

diff --git a/ui/colors.go b/ui/colors.go
index 096bdbe..f356234 100644
--- a/ui/colors.go
+++ b/ui/colors.go
@@ -1,6 +1,7 @@
package ui

import (
	"math"
	"hash/fnv"
[message trimmed]

[PATCH] app: treat Shift+Backspace as Backspace 6 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

before ffb806d777cb0123d276f0c03463fa0fdda1a4ae, both Shift+Backspace
and Ctrl+Backspace acted as "erase previous character", but since then
Backspace does nothing if modified by Shift or Ctrl. I find that I often
try to backspace while still having Shift held down from a previous
character I typed, so make Shift+Backspace work as it did previously.
---
 app.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app.go b/app.go
index ea96281..87f8f6a 100644
--- a/app.go
+++ b/app.go
@@ -747,6 +747,10 @@ func (app *App) handleKeyEvent(ev vaxis.Key) {
[message trimmed]

Re: [PATCH] config: add 'color nicks custom' 7 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

On Mon, Jul 08 2024 14:12:32 +0900, Lauri Tirkkonen wrote:
> Updated patch that works with latest senpai master.

I sent the previous patch by mistake. Here's the one I meant to send.

---
 config.go        | 14 ++++++++++++++
 doc/senpai.5.scd |  2 ++
 ui/colors.go     |  6 ++++++
 3 files changed, 22 insertions(+)

diff --git a/config.go b/config.go
index 3b6c40b..b899119 100644
--- a/config.go
[message trimmed]

Re: [PATCH] config: add 'color nicks custom' 7 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

On Sat, Jun 01 2024 11:48:41 +0900, Lauri Tirkkonen wrote:
> On Fri, Jan 05 2024 19:34:40 +0900, Lauri Tirkkonen wrote:
> > this allows users to specify their own custom color scheme with as many
> > colors as they like.
> 
> some background: I use this with the following config because I find
> "extended" scheme has too few colors; collisions happen often.
> 
> 	colors {
> 		nicks custom 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 96 97 98 99 100 101 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 132 133 134 135 136 137 138 139 140 141 142 143 148 149 150 151 152 153 154 155 156 157 158 159 160 161 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 191 192 193 194 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
> 	}

Updated patch that works with latest senpai master.
[message trimmed]

[PATCH] ui: fix "mouse false" config 8 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

vaxis doesn't implement DisableMouse(), instead requiring an option at
init time
---
 ui/ui.go | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/ui/ui.go b/ui/ui.go
index 801ee99..77e5a55 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -73,13 +73,10 @@ func New(config Config) (ui *UI, err error) {
		return
	}

[message trimmed]

[PATCH vaxis-tcell] tcell: unbreak Shift mod on recent vaxis 8 months ago

From Lauri Tirkkonen to ~rockorager/vaxis

senpai no longer reacts to Shift+Left/Shift+Right for me after it was
updated to use vaxis-tcell, because it doesn't detect the shift modifier
any more. this fixes that.
---
 tcell.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tcell.go b/tcell.go
index 0f59f63..dd2fc7f 100644
--- a/tcell.go
+++ b/tcell.go
@@ -61,9 +61,6 @@ func TcellKey(vx vaxis.Key) *EventKey {
	if vx.Modifiers&vaxis.ModHyper != 0 {
		ev.mod |= ModSuper
[message trimmed]

[PATCH vaxis-tcell] tcell: unbreak Shift mod on recent vaxis 8 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

senpai no longer reacts to Shift+Left/Shift+Right for me after it was
updated to use vaxis-tcell, because it doesn't detect the shift modifier
any more. this fixes that.
---
 tcell.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tcell.go b/tcell.go
index 0f59f63..dd2fc7f 100644
--- a/tcell.go
+++ b/tcell.go
@@ -61,9 +61,6 @@ func TcellKey(vx vaxis.Key) *EventKey {
	if vx.Modifiers&vaxis.ModHyper != 0 {
		ev.mod |= ModSuper
[message trimmed]

Re: [PATCH] config: add 'color nicks custom' 8 months ago

From Lauri Tirkkonen to ~delthas/senpai-dev

On Fri, Jan 05 2024 19:34:40 +0900, Lauri Tirkkonen wrote:
> this allows users to specify their own custom color scheme with as many
> colors as they like.

some background: I use this with the following config because I find
"extended" scheme has too few colors; collisions happen often.

	colors {
		nicks custom 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 96 97 98 99 100 101 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 132 133 134 135 136 137 138 139 140 141 142 143 148 149 150 151 152 153 154 155 156 157 158 159 160 161 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 191 192 193 194 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
	}

-- 
Lauri Tirkkonen | lotheac @ IRCnet