Command line utility to print the address of the current selection, meant to be run from within the Acme editor.
go install github.com/cloudspinner/acmeaddr@latest
The utility uses the environment variable $winid
to find the active Acme window.
If acmeaddr
is run from Acme, this variable will automatically be set.
This is a port to Go of a C snippet originally posted by Russ Cox in the plan9port-dev mailing list.