~theclapp

Recent activity

[PATCH v3] widget: add some rudimentary exported editing methods 10 hours ago

From Larry Clapp to ~eliasnaur/gio-patches

Editor.DeleteBackward
Editor.DeleteForward
Editor.MoveLeft
Editor.MoveRight
Editor.MoveTop
Editor.MoveBottom
Editor.Insert

Move the Editor.command method up above all the functions it calls.

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 widget/buffer.go | 12 ++++++-
 widget/editor.go | 92 +++++++++++++++++++++++++++++-------------------
[message trimmed]

[PATCH v2] widget: add some rudimentary exported editing methods 21 hours ago

From Larry Clapp to ~eliasnaur/gio-patches

Editor.DeleteBackward
Editor.DeleteForward
Editor.MoveLeft
Editor.MoveRight
Editor.MoveBufferStart
Editor.MoveBufferEnd
Editor.Insert

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 widget/buffer.go | 12 ++++++++++++
 widget/editor.go | 23 +++++++++++++++++++++++
 2 files changed, 35 insertions(+)
[message trimmed]

[PATCH] widget: add some rudimentary exported editing methods a day ago

From Larry Clapp to ~eliasnaur/gio-patches

Editor.DeleteBackward
Editor.DeleteForward
Editor.MoveLeft
Editor.MoveRight
Editor.MoveBufferStart
Editor.MoveBufferEnd

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 widget/buffer.go | 12 ++++++++++++
 widget/editor.go | 18 ++++++++++++++++++
 2 files changed, 30 insertions(+)

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

[PATCH] app/internal/windows: modifiers & punctuation hotkeys 5 days ago

From Larry Clapp to ~eliasnaur/gio-patches

For Windows:
- Add shift/ctrl/etc modifiers to mouse events, so you can recognize the
  difference between "click" and "shift-click".
- Add several allowed punctuation characters as single key events, so
  you can (for example) use "." as a hotkey.

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 app/internal/window/os_windows.go | 92 ++++++++++++++++++++++---------
 1 file changed, 66 insertions(+), 26 deletions(-)

diff --git a/app/internal/window/os_windows.go b/app/internal/window/os_windows.go
index 9949f00..d172d55 100644
--- a/app/internal/window/os_windows.go
[message trimmed]

Re: [PATCH] layout: make List scroll position settable 9 days ago

From Larry Clapp to ~eliasnaur/gio-patches

On Mon, Nov 25, 2019 at 05:11:20PM +0100, Elias Naur wrote:
> That's exactly what Position is :) You're free to improve my
> description, of course.

I went with your description after all. :)

> > > Comparing two Positions does not reveal the distance scrolled
> > > during Layout.
> > 
> > I agree, but so what?  That wasn't the point of returning the
> > scroll position.
> > 
> 
> It was just an off-hand remark for future work. Sorry if it confused

[PATCH v2] layout: make list scroll position settable 9 days ago

From Larry Clapp to ~eliasnaur/gio-patches

Put List.{first|offset|beforeEnd} into a new exported Position slot, and
also export each individually.

Have to put BeforeEnd into the Position slot to support ScrollToEnd
lists.

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 layout/list.go | 95 ++++++++++++++++++++++++++++----------------------
 1 file changed, 53 insertions(+), 42 deletions(-)

Commentary:

Take two!
[message trimmed]

Re: [PATCH] layout: make List scroll position settable 10 days ago

From Larry Clapp to ~eliasnaur/gio-patches

On Mon, Nov 25, 2019 at 10:46:09AM +0100, Elias Naur wrote:
> Nice.

Thanks!  :)

> On Sun Nov 24, 2019 at 10:32 PM Larry Clapp wrote:
> > +// First is the index of the first visible child.  Offset is the signed
> 
> Nit: use a single space after periods.

Okay.

> > +// distance from the top edge to the child with the index First.
> 

[PATCH] layout: make List scroll position settable 10 days ago

From Larry Clapp to ~eliasnaur/gio-patches

- Added List.LayoutPos, which displays the list starting at the given
  Position, and returns the list's Position after layout (including any
  scrolling).
- Make List.Layout call LayoutPos, for the common case where you don't
  care about setting the list position.

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 layout/list.go | 79 +++++++++++++++++++++++++++-----------------------
 1 file changed, 43 insertions(+), 36 deletions(-)

diff --git a/layout/list.go b/layout/list.go
index bd4d08a..119e308 100644
--- a/layout/list.go
[message trimmed]

[PATCH v6] app/internal/window: allow punctuation as keycode events 12 days ago

From Larry Clapp to ~eliasnaur/gio-patches

Allows things like "ctrl-{" and ".".

All punctuation is returned as-is, e.g. "!" is "!", not "shift-1", and
"{" is "{", not "shift-[".

Also add the Enter key as a known key (fn-return on my Mac).

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 app/internal/window/os_macos.go | 18 ++++++++++--------
 io/key/key.go                   | 10 +++++-----
 2 files changed, 15 insertions(+), 13 deletions(-)

Commentary:
[message trimmed]

Re: [PATCH v2] app/internal/window: allow punctuation as keycode events 14 days ago

From Larry Clapp to ~eliasnaur/gio-patches

Yes, I sent it immediately; perhaps, even, beforehand.  I got my copy;
I don't see it in the archive.

I've resent it as v4 and it's been a few minutes and I got my copy but
still nothing in the archive.

As near as I can tell everything's fine on my end.  I got a "250 OK"
from mutt.  I looked at some of my earlier submissions and that's what
they said, too, so I'm not sure what's going wrong.

> Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
> OK. Log says:
> Server: smtp.gmail.com
> MAIL FROM:<larry@theclapp.org>