I'd need some help with run-shell-command
#3132
Replies: 2 comments 2 replies
-
I had some time to play with this issue. 1. The first problem is causes by this:helix/helix-term/src/commands.rs Lines 4544 to 4550 in 61856f1 I've made a quick test calling 2. I can avoid the second problem by escaping the double quotesSo I guess it could be solved in a more elegant way but it's good enough for now. |
Beta Was this translation helpful? Give feedback.
-
Note: There's currently a pull request to make impl_shell concurrent which may solve applicable async issues: #3180 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'd like to pass commands from helix to a zellij session, but I'm encountering a couple of roadblocks:
1
:sh zellij -s ONE action 'NewTab:'
This command should create a new tab on the session named "ONE".
The command fails, and the log shows:
I'm not familiar with how terminals work, but I'm guessing helix is not getting the return code/output it's expecting. In emacs I can run async shell commands ignoring completely the output and return code, and it would be nice to have it here too.
2
:sh zellij -s ONE action 'WriteChars: "a"'
This command should write "a" on the session named "ONE.
The command fails with this log message:
I get the same error even if I omit the double quotes around
a
(which isn't valid syntax for that command).I'm confused by this one, because it appears that helix handles quotes correctly.
For example
:sh echo 'WriteChars: "a"' > foo.txt
works fine.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions