Most editors have an option to run cargo commands, but in my opinion this goes beyond the editor's domain area, so I decided to write a universal solution for any terminal that has tmux.
- Run mostly all cargo commands
- Run custom cargo commands
- Fuzzy search of concreate test
Add with tpm
set -g @plugin 'idevtier/tmux-cargo'
Clone repo:
git clone https://github.com/idevtier/tmux-cargo ~/.tmux-cargo
Add to ~/.tmux.conf
:
run-shell ~/.tmux-cargo/tmux-cargo.tmux
Reload tmux configuration:
tmux source-file ~/.tmux.conf
- Use
prefix+a
- Tmux will create new window and run
fzf
for cargo commands - Choose one of them and go
- After running
test
command automatically enterscopy mode
- Multiple test selection
- Bench selection