-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Adding a repl binary #49
Conversation
Hey, I saw you just replaced sh with rc in 0b0aa17 and I wonder if you want to leave it like that for after ? I do believe it's a better shell than sh, but making it a hard dependency might be a hard point
|
@rakoo getting it to work nicely with |
Wow this is great! |
Text appended via the filesystem interface is explicitly not executed as I need to avoid trying to execute output as it gets appended to the buffer. If I added echo 'ls' | 9p write ad/buffers/1/body
echo '$-' | 9p write ad/buffers/1/addr
echo 'Execute' | 9p write ad/ctl edit
|
@davcam that should work now 👍 |
@sminez many thanks for this it is close. When I execute the three lines
I get the below in the +win window with no errors rather than an ls listing
|
Huh...I ran exactly that and it worked for me. Did you have anything else in the buffer at the point you ran this? I ran things immediately after starting |
whenever I run
it outputs
irrespective of the previous lines so perhaps my issue is with "Execute" - could this be due to a difference in interaction with p9p?
cargo 1.82.0 (8f40fc59f 2024-08-21) |
Ok I think I understand I was missing a step.
works for me.
should do that. |
Ok I think the issue is that it is skipping to the next line after
2:1
I get |
Oh! Sorry 🤦 This is what I'm doing: ad-repl-test-2024-11-14_14.56.41.mp4I messed up the command I gave you: the addr you want to set is |
Thanks yes or
also works |
Is there any way to change the "current" buffer externally? I tried writing to it
but got a permission problem The idea is to have two ad windows open: the LH one is my code where I select lines to change dot I then run the mysend script below to send to the RH +win for execution
At the moment I'm having to click in the RH window so that Execute sends to +win |
@davcam you can use the For other questions like this would you mind raising an issue rather than asking on this PR? I'd prefer to keep the discussion here related to the PR itself 🙂 |
This is aiming to be an equivalent to the
win
command that comes with acme.ad-repl-2024-11-14_07.53.54.mp4