rakyll / gotest

go test with colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Clipboard Option

corylanou opened this issue · comments

I've used this tool https://github.com/benbjohnson/goo by @benbjohson. Copies the first "failure" to your buffer to cut/paste into your editor.

My workflow tends to always be running tests on save, and because this tool copies the first failure to the clipboard, I can quickly jump to the code in my editor (vim for me). I also use it for things like go build as well, but that may not apply to this project.

I understand this is a fairly specialized request, so feel free to close this issue if you feel it isn't worth adding.

I don't think copying by default is the expected behavior for those who cares about what's already in their clipboard, it might be better to address this problem outside of this tool maybe. For example, piping the output to another tool that copies it to the clipboard.

I was thinking of enabling it via a flag option, not by default. I agree you wouldn't expect that as default behavior.