Avoid Context Switching: Use ScriptKit.com - a podcast by Kent C. Dodds

from 2021-05-06T14:30:38

:: ::

https://www.scriptkit.com/
https://kentcdodds.com/blog/automationHey friends So you know how sometimes you do things so many times that
you're like you know what I'm just gonna write a script for this and we'll
run it and whatever and so I don't have to do this over and over again. And
like some of those things can be pretty extensive, like there's a lot of
stuff that you end up doing like you gotta open up this webpage and thenyou gotta click on that and then you gotta go do this, whatever.And some of those things can be like really simple. So I just need to open
this file add a line to this and save it and then close my editor orwhatever. And you can speed all of those things up using like little CLI
to.Pull that you make or something and the the value of this isn't
necessarily in the amount of time that it saves you but in the amount ofcontext switching it saves you from.
So so you don't have to pull up your whole editor, you don't need to pull
up this tab or whatever it is. I actually have a blog post about like whysaving time isn't the only reason to automate things which is kind of a
good blog post. You can go check it out.But what I wanted to tell you about today was there's a much better way to
automate stuff. Especially if you're a Mac user Windows support for this is
coming.Eventually but what I wanted to tell you about is this tool calledscript kit by John Linquist. So if you haven't heard of script kit, it's
sort of like a spotlight or Alfred or or what what's the thing on Windows
that you like you just hit the Windows key and then you can type something.But yeah, it's just this little key combination that you can execute
anywhere and then you type something and you can execute some little scriptthat you have. So script kit it's it's really really cool and once you
start creating these little auto.Mations and there are a lot of cool thingsyou can do.
And it has some really awesome APIs for accepting arguments and and forprompting you for additional information, you can drag and drop files all
sorts of really cool things that I just strongly urge you to take a look atand see how it can improve your life. So one thing that I do is I have a
script that will automatically update dependencies for all of the epicreacts workshops, and so yeah.
I just run this script. It opens up. What is it seven?To terminals for theseven repos that epic or maybe eight repost synaptic react has and and it
updates all of the dependencies and and then pushes that up automaticallyfor me. And so that I can keep things fresh and quick and it doesn't take
any time.I've got another one that allows me to quickly open up any project that I
have in VS Code and it's just it's much quicker than opening up a terminal
and doing it like executing a script. So take a look at script kit, it's
super cool. Have a nice.Day.

Further episodes of 3 Minutes with Kent

Further podcasts by Kent C. Dodds

Website of Kent C. Dodds