Replies: 1 comment
-
It was unhappy with the backslashes - escaping with '\' worked. Here's a keybinding to run all rust unit tests in your current buffer:
|
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I came up with a shell command that allows me to run rust unit tests for my current buffer using the new
%{buffer_name}
.It works when running it as a command as so:
It uses sed to modify the buffer_name into a module path which is then used as an argument in
cargo test
. I'm having trouble binding this command to a keybinding in my config. Copy pasting it directly doesn't work correctly. I tried breaking it apart but the config parser doesn't seem very happy with sed quotation marks/escape sequences - would appreciate some pointers.Current attempt:
Beta Was this translation helpful? Give feedback.
All reactions