Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async command execution #53

Open
leahneukirchen opened this issue Nov 20, 2024 · 4 comments
Open

Async command execution #53

leahneukirchen opened this issue Nov 20, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@leahneukirchen
Copy link

Please describe the change / addition you'd like to see made

It would be very nice if ! created the buffer immediately and started streaming the output to the buffer (e.g. for a long cargo build run.)

There should be a way to interrupt the process execution.

Is this a feature you have seen in other text editors?

Emacs: M-x shell-command cargo build &
Acme: Right-mouse-drag command to execute it

@leahneukirchen leahneukirchen added the enhancement New feature or request label Nov 20, 2024
@sminez
Copy link
Owner

sminez commented Nov 21, 2024

I agree, this should very much be how ! works 🙂

Is it possible to interrupt process execution in this way in acme do you know? When I try running ping google.com for example it will stream the output to a +Errors buffer but closing that buffer results in it immediately being reopened as more output comes in. The only way I can find to kill ping in this case is to pkill it 😕

@leahneukirchen
Copy link
Author

In acme, you can swipe "Kill ping". A buffer-specific keyword would probably be nicer.

@sminez
Copy link
Owner

sminez commented Nov 21, 2024

Ah cool thanks!

From acme(1):

Kill Send a kill note to acme-initiated commands named as arguments.

https://github.com/9fans/plan9port/blob/61e362add9e1485bec1ab8261d729016850ec270/src/cmd/acme/exec.c#L1240 looks like its where this is handled inside of acme.

I'm not sure I understand what you mean by a "buffer-specific keyword" here. Are you just meaning something less generic than "Kill"?

@rakoo
Copy link

rakoo commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants