0

When I'm coding (in Neovim), I use Guard in one of my panes so I can see the results of test running this causes the Tmux UI to update which causes a lot of lag when I'm trying to write into my editor in another pane.

So I'm wondering, is it possible to run guard in a background window (as to not update the UI so much to reduce lag) and then send output that matches from a list of matches (in some manner) to a specific pane on my visible window or perhaps in the status bar? So for example:

  1. Write to file
  2. Guard executes and runs RSpec and Rubocop
  3. When Guard displays the list of failures it outputs it to background pane X
    • Matching something like /Failed.*$.*#.*\n$/m
  4. when Guard displays the Rubocop violations it outputs it to background pane X
    • Matching something like /Offenses.*detected/m
  5. Plugin sees the output in pane X, matches against given matchers and outputs only the matching part to foreground pane Y

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.