~adnano/astronaut-devel

astronaut: Vim-familiar scrolling feature v1 APPLIED

~exastencil
Hi,

I really like your client. I'm not sure what your plans are for
keybindings, but since the Vim keys for scrolling up and down weren't
allocated and that's the way I like to operate terminal clients, I added
them in. In case you wanted to incorporate those, here's the patchset.
There weren't any tests so I didn't add any.

Thanks for this. I'll
probably keep using this until I finish my own client.

I have noticed
a bug where certificates aren't being saved. I think the path is wrong
for me:

`open /home/exastencil/.local/share/gemini/known_hosts: no
such file or directory`

I'll see if I can figure it out.

Regards,
Exa

Exa Stencil (1):
  Vim-familiar keybindings for line scrolling

 ui/context.go | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
2.26.2
Thanks!

To git.sr.ht:/~adnano/astronaut
   593409f..6385168  master -> master
I implemented configurable keybindings and added an example
configuration in binds/binds.conf.

You can put this in ~/.local/share/astronaut/binds.conf and change it to
suit your tastes.

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~adnano/astronaut-devel/patches/14862/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH astronaut 1/1] Vim-familiar keybindings for line scrolling Export this patch

~exastencil
From: Exa Stencil <git@exastencil.com>

---
 ui/context.go | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ui/context.go b/ui/context.go
index 93e3a49..70106c1 100644
--- a/ui/context.go
+++ b/ui/context.go
@@ -166,6 +166,17 @@ func (c Context) HandleScrollEvent(event tcell.Event) bool {
			c.PgUp()
			c.Invalidate()
			return true
		case tcell.KeyRune:
			switch event.Rune() {
			case 'j':
				c.ScrollDown(1)
				c.Invalidate()
				return true
			case 'k':
				c.ScrollUp(1)
				c.Invalidate()
				return true
			}
		}
	case *tcell.EventMouse:
		if !c.Contains(event.Position()) {
-- 
2.26.2
Thanks!

To git.sr.ht:/~adnano/astronaut
   593409f..6385168  master -> master
I implemented configurable keybindings and added an example
configuration in binds/binds.conf.

You can put this in ~/.local/share/astronaut/binds.conf and change it to
suit your tastes.