Tmux plugin for cargo

November 20, 2022 ยท View on GitHub

Why

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.

Features

  • Run mostly all cargo commands
  • Run custom cargo commands
  • Fuzzy search of concreate test

Dependencies

Screenshots

Alt text

Install

Add with tpm

set -g @plugin 'idevtier/tmux-cargo'

Manual install

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

How to use

  • 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 enters copy mode

In work

  • Multiple test selection
  • Bench selection