~delthas

Recent activity

[PATCH senpai] Enable scrolling through the vertical member list with the mouse wheel 15 days ago

From delthas to ~taiite/public-inbox

---
 app.go        |  6 ++++++
 ui/buffers.go | 18 +++++++++++++++---
 ui/ui.go      | 34 ++++++++++++++++++++++++++++++----
 3 files changed, 51 insertions(+), 7 deletions(-)

diff --git a/app.go b/app.go
index aed5249..e1d8d59 100644
--- a/app.go
+++ b/app.go
@@ -296,9 +296,13 @@ func (app *App) handleUIEvent(ev interface{}) {

func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
	x, y := ev.Position()
[message trimmed]

[PATCH senpai] Track user away state and show away users in grey 16 days ago

From delthas to ~taiite/public-inbox

---
 app.go         |  4 ++-
 commands.go    |  2 +-
 completions.go |  2 +-
 irc/events.go  |  6 ++++
 irc/session.go | 77 +++++++++++++++++++++++++++++++++++++++++++-------
 irc/tokens.go  | 22 +++------------
 ui/buffers.go  |  5 +++-
 7 files changed, 86 insertions(+), 32 deletions(-)

diff --git a/app.go b/app.go
index aed5249..37e1265 100644
--- a/app.go
+++ b/app.go
[message trimmed]

[PATCH senpai v3] Make buffers indexed, and refer to indexes with /BUFFER 16 days ago

From delthas to ~taiite/public-inbox

Fixes: #29
---
This adds padding for channel indexes. :)

 commands.go   |  7 +++++++
 ui/buffers.go | 10 +++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/commands.go b/commands.go
index b9ac392..f36fa58 100644
--- a/commands.go
+++ b/commands.go
@@ -2,6 +2,7 @@ package senpai

[message trimmed]

[PATCH senpai] Fix crash on disconnect 16 days ago

From delthas to ~taiite/public-inbox

The crash was due to accessing app.s.Nick() when app.s was nil.

This is a good opportunity to print a special prompt when disconnected:
I chose `<offline>`, in red.
---
 app.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app.go b/app.go
index aa6a4c4..aed5249 100644
--- a/app.go
+++ b/app.go
@@ -811,6 +811,12 @@ func (app *App) updatePrompt() {
				StyleDefault.
[message trimmed]

[PATCH senpai] Add notify types for fine-grained control of unread/highlight state 17 days ago

From delthas to ~taiite/public-inbox

Namely, we want the unread light to show up only on actual messages, not
commands etc.

This opens the way for not showing an unread light when printing topic
on join.
---
 app.go        | 22 ++++++++++++++--------
 commands.go   | 30 +++++++++++++++---------------
 ui/buffers.go | 14 +++++++++++---
 ui/ui.go      |  4 ++--
 window.go     |  6 +++---
 5 files changed, 45 insertions(+), 31 deletions(-)

diff --git a/app.go b/app.go
[message trimmed]

[PATCH senpai] ui: Introduce a vertical member list on channels 17 days ago

From delthas to ~taiite/public-inbox

Also, fix the UI timeline clearing too much, as well as the status line.

Also, remove the width in the editor and buffer list constructors. We
were initializing them with wrong values, only to overwrite these values
with correct ones later in Resize().
---
 app.go           | 11 +++++++---
 config.go        | 12 +++++++----
 doc/senpai.5.scd |  7 ++++--
 ui/buffers.go    | 56 +++++++++++++++++++++++++++++++++---------------
 ui/editor.go     |  5 +++--
 ui/ui.go         | 29 +++++++++++++++----------
 6 files changed, 81 insertions(+), 39 deletions(-)
[message trimmed]

[PATCH senpai v2] Make buffers indexed, and refer to indexes with /BUFFER 17 days ago

From delthas to ~taiite/public-inbox

Fixes: #29
---
Also, make the number grey :)

 commands.go   | 7 +++++++
 ui/buffers.go | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/commands.go b/commands.go
index b9ac392..f36fa58 100644
--- a/commands.go
+++ b/commands.go
@@ -2,6 +2,7 @@ package senpai

[message trimmed]

[PATCH senpai v2] Automatically join channels on start 17 days ago

From delthas to ~taiite/public-inbox

Supporting channels with keys and merging JOINs in a single message is
TODO for later. :)
---
 app.go           |  5 +++++
 config.go        |  3 ++-
 doc/senpai.5.scd |  5 +++++
 irc/session.go   | 15 ++++++++-------
 4 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/app.go b/app.go
index 57c12de..3b8e3ad 100644
--- a/app.go
+++ b/app.go
@@ -464,6 +464,11 @@ func (app *App) handleIRCEvent(ev interface{}) {
[message trimmed]

[PATCH senpai v2] Switch to the buffer of a new user-requested channel join 17 days ago

From delthas to ~taiite/public-inbox

---
 app.go         |  5 ++++-
 irc/events.go  |  3 ++-
 irc/session.go | 51 +++++++++++++++++++++++++++++---------------------
 ui/buffers.go  |  9 ++++-----
 ui/ui.go       | 12 ++++++++++--
 5 files changed, 50 insertions(+), 30 deletions(-)

diff --git a/app.go b/app.go
index 57c12de..abfc65f 100644
--- a/app.go
+++ b/app.go
@@ -510,10 +510,13 @@ func (app *App) handleIRCEvent(ev interface{}) {
			})
[message trimmed]

[PATCH senpai] Clear the input on CTRL+C instead of quitting 18 days ago

From delthas to ~taiite/public-inbox

We have /QUIT for quitting. Most well-known IRC clients don't quit on
CTRL+C but they do on QUIT.

Clearing the editor input on CTRL+C is useful for shell-like behaviour
"abort current line, let me start my line again".
---
Beware!! We'll need to add e.backsearchEnd() to e.Clear() when rebasing 
the backsearch patch.

 app.go       |  2 +-
 ui/editor.go | 12 ++++++++++++
 ui/ui.go     |  4 ++++
 3 files changed, 17 insertions(+), 1 deletion(-)
[message trimmed]