cargo run shortcut? #6477
Unanswered
matthiasdebernardini
asked this question in
Q&A
Replies: 2 comments 4 replies
-
If the program is not interactive, redirecting stderr to stdout and ensuring the exit code is 0 should always display the output in helix: [keys.normal.space]
r = ":sh cargo run 2>&1 || true" Another flexible workaround but requiring an external program like tmux, sending [keys.normal.space]
# Create a new vertical split
T = [":sh tmux split-window"]
# Repeat last command in the previously selected pane
t = [":sh tmux send-keys -t :.! !! C-m"] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Use Kitty and add this for cargo run and cargo test. You need to first create a Window called [keys.normal.space]
c = { r = ":sh kitty @ send-text --match 'title:^Terminal' cargo run \\\\n", t = ":sh kitty @ send-text --match 'title:^Terminal' 'clear \\ncargo test \\n'" } |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How would I make a key combo to run something like
cargo run
? (or any other custom runners)I'd like a small window to pop up and show the progress.
The
sh
command doesn't have a window that pops up and shows the output.What's a good way to enable this functionality?
Thanks
Should I instead go about this a different way?
Beta Was this translation helpful? Give feedback.
All reactions