sublime-go icon indicating copy to clipboard operation
sublime-go copied to clipboard

Provide clickable interactions to run a test (file, func, package)

Open piotrkubisa opened this issue 5 years ago • 4 comments

In the VSCode you can press run test or debug test that is displayed on the top of the test function. I believe it is possible to add run test in Phantom as in https://github.com/aziz/SublimeHyperClick

piotrkubisa avatar Nov 13 '19 09:11 piotrkubisa

Yeah that'd be cool as a toggle/option, I'm on sublime's discord and there's a lot of nice API additions for nicer clicking, control etc..

Personally, I think this pkg shouldn't depend on other pkgs, it makes things 10x harder to test and it's already hard as it is ;).

yields avatar Apr 05 '20 15:04 yields

Indeed. I think it would be nice to have it as a separated package, because it will be too much clutter. It is easy to install an extra package that will do specialized to just running and testing while other related to editing.

piotrkubisa avatar Apr 07 '20 09:04 piotrkubisa

Good news is that sublime-text v4 will now allow minihtml links to invoke commands, so presumably it will look like:

<a href="subl:go_run_test">Run</a>

yields avatar Apr 10 '20 10:04 yields

Awesome! That sounds really easy to make now. Perfect time to look for some free time to implement this ;)

piotrkubisa avatar Apr 10 '20 12:04 piotrkubisa