acme experiment

148 views
Skip to first unread message

Russ Cox

unread,
Jun 15, 2024, 12:37:21 PMJun 15
to plan9port-dev
as an experiment, i have changed acme on mac so that shift-button-3 searches backward.
feedback welcome.

Russ Cox

unread,
Jun 15, 2024, 2:57:20 PMJun 15
to silas poulson, plan9port-dev
On Sat, Jun 15, 2024 at 2:51 PM silas poulson <sila...@hotmail.co.uk> wrote:

> On 15 Jun 2024, at 17:37, Russ Cox <r...@swtch.com> wrote:
>
> as an experiment, i have changed acme on mac so that shift-button-3 searches backward.
> feedback welcome.

Thanks Russ, very useful!

Any plans to extend this to other platforms?

Unfortunately, on X11 historically both Alt and Shift have meant "turn click into button 3". I'm reluctant to change that, but I suppose we could. I don't know who out there has Shift baked into their fingers rather than Alt.

Best,
Russ

silas poulson

unread,
Jun 15, 2024, 9:47:02 PMJun 15
to r...@swtch.com, plan9port-dev

> On 15 Jun 2024, at 17:37, Russ Cox <r...@swtch.com> wrote:
>
> as an experiment, i have changed acme on mac so that shift-button-3 searches backward.
> feedback welcome.

Thanks Russ, very useful!

Any plans to extend this to other platforms?

Silas

silas poulson

unread,
Jun 15, 2024, 9:47:13 PMJun 15
to plan9port-dev
Ok - would you be able to send a diff for X11 ?

I've attempted to apply a similar change on linux but am finding it quite difficult.

Thanks,
Silas

Russ Cox

unread,
Jun 15, 2024, 10:24:03 PMJun 15
to sila...@hotmail.co.uk, plan9port-dev
Hi Silas,

It's difficult for me to try to test on X11 right now, but I think the diff would look something like this: https://go.dev/play/p/uZBMkSg2ahH. If you get it working and send it back I'm happy to apply it.

While I'm writing, I also pushed a commit removing a leftover debug print from acme.

Best,
Russ



--

---
You received this message because you are subscribed to the Google Groups "plan9port-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plan9port-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plan9port-dev/217666ef-c853-4d55-9c7c-9944ded8d13cn%40googlegroups.com.

Pedro L Ramos

unread,
Jun 16, 2024, 10:51:44 AMJun 16
to r...@swtch.com, sila...@hotmail.co.uk, plan9port-dev
Hi Russ,

Are you planning to eventually port this change to the go version of acme as well? (9fans.net/go/cmd/acme)

BR
Pedro L Ramos

No dia 16/06/2024, às 03:24, Russ Cox <r...@swtch.com> escreveu:



silas poulson

unread,
Jun 16, 2024, 2:58:44 PMJun 16
to plan9port-dev
On Sunday 16 June 2024 at 03:24:03 UTC+1 Russ Cox wrote:
It's difficult for me to try to test on X11 right now, but I think the diff would look something like this: https://go.dev/play/p/uZBMkSg2ahH. If you get it working and send it back I'm happy to apply it.

Thanks Russ!

That's pretty much the changes required - only slight problem was that you declared shift twice.

Many thanks,
Silas

Russ Cox

unread,
Jun 17, 2024, 9:58:48 AMJun 17
to sila...@hotmail.co.uk, plan9port-dev
I pushed a fix to the acme-on-Mac that handles shift of real 3-button mice now.
I also accidentally included my draft x11 patch, but it looks fine as is:
the declaration of shift in the inner scope is still correct.
So I'll leave it that way.

Best,
Russ

Reply all
Reply to author
Forward
0 new messages