rjkroege / edwood

Go version of Plan9 Acme Editor
Other
385 stars 34 forks source link

how do I configure plumb rule on window system #452

Closed ianzhang366 closed 2 years ago

ianzhang366 commented 2 years ago

Hi there,

I'm new to edwood, it's a great project, thanks for your work.

I'm trying to figure out how to set up the plumber and plumb rule with my edwood.

As on plan9, I can used cat rules.txt | 9p write plumb/rules, but not sure how to do this on Windows 11.

Can you please give me some direction for this?

rjkroege commented 2 years ago

I don't know how to run the plumber on Windows. @camsn0w has told me that parts of Plan9Port will work in the Windows Linux subsystem. Maybe you could use that? With a working plumber, the above would work. (Your approach works on Linux and MacOS.)

ianzhang366 commented 2 years ago

I see, thanks!

I wonder how does the Button Three work for edwood,

From http://acme.cat-v.org/mouse, it says, Button Three - Plumb, if plumb fails, search for next occurrence of text*.. If we don't run plumber on Windows, how do we implement this?

Also do you we have any doc that shows how to set up https://github.com/fhs/acme-lsp with edwood?

ianzhang366 commented 2 years ago

Hi @camsn0w do you have any doc that I can follow up for using the plumber with WSL, then I can feed it to edwood

rjkroege commented 2 years ago

how does the Button Three work for edwood

There's a default implementation of the right button. Look at look3() if the plumber isn't working.

Also do you we have any doc that shows how to set up https://github.com/fhs/acme-lsp with edwood?

I don't. I mean to get around to setting it up. @fhs has some reasonable getting started info at the link that you shared. Maybe try it out and see how it works. If you make some notes, please add them here as a PR.

camsn0w commented 2 years ago

Hi @camsn0w do you have any doc that I can follow up for using the plumber with WSL, then I can feed it to edwood

Have you tried installing WSL and installing edwood on it and running it over the new windows xserver? That seems like the most painless way to do it.

paul-lalonde commented 2 years ago

I've been using it - it runs pretty much out of the box. Issue the acme-lsp command from within a win (or middle-click) with the parameters pointing at the source code you want it to see. You'll need all the little "L" scripts accessible.

On Sun., Apr. 24, 2022, 8:04 a.m. Robert Kroeger, @.***> wrote:

how does the Button Three work for edwood

There's a default implementation of the right button. Look at look3() if the plumber isn't working.

Also do you we have any doc that shows how to set up https://github.com/fhs/acme-lsp with edwood?

I don't. I mean to get around to setting it up. @fhs https://github.com/fhs has some reasonable getting started info at the link that you shared. Maybe try it out and see how it works. If you make some notes, please add them here as a PR.

— Reply to this email directly, view it on GitHub https://github.com/rjkroege/edwood/issues/452#issuecomment-1107858965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6RUCWYS6ANCHUANZPQDLVGVPHXANCNFSM5T2YK2JA . You are receiving this because you are subscribed to this thread.Message ID: @.***>