shortcuts
Nov 21
November 21st, 2018
this post is incomplete
Skip to the shortcuts.
Disclaimer: I am not expert in this subject, but I’ve done my best to avoid misinformation throughout this post. If I’ve gotten anything wrong, send me an email.
Recently, I’ve gotten better at interacting with my computer. It’s a mid-2014 MacBook Pro with 8GB of RAM, 128GB of storage; pretty standard. Despite these outdated stats, I don’t want a new computer. My relationship with my laptop has changed. Even though it’s 5 years old, these days it feels like I’m interacting with a new machine. More accurately, I have a new way of interacting with my machine.
Basically, this post is all about inputs.
Usually to make your computer do things, you interact with it through a controller. Those controllers are usually a mouse/trackpad and a keyboard. For the majority of my life, the mouse was the way I interacted with a computer. This means what you think it does. Clicking, dragging, selecting, highlighting; everything was done using my hand to move the mouse across the screen. The keyboard was used for typing, turning up the brightness and maybe pausing Youtube videos. This method of interaction is fine. It’s cool. It’s what most people do.
It isn’t fast though.
The keyboard is fast. If you are a relatively good typer (like I am), the keyboard will change your life. Put simply, I’m telling you to use more keyboard shortcuts. The reason I wrote a whole blog post to tell you this is because it really speeds up everything you do. I created this blog post, setup a localhost to view it on Chrome and am writing this post all without touching the trackpad. This also implies something important. The less you use the mouse, the less you need a Graphical User Interface (GUI).
This is how I think of it. Imagine you have a window on your computer screen with a bunch of buttons on it. Like the toolbar in Microsoft Word. Every button on that screen has a specific function: Set the font size, font colour, line spacing, bold, etc.
To use these functions, you navigate the mouse to each button. This takes time because you are typing words, then you have to use the mouse, then you have to switch back to using the keyboard. What if you didn’t have to navigate your mouse to anything? What if the keys on your keyboard are the buttons!? In that case, why have the buttons on the screen in the first place? If the buttons are your keys, why do you need buttons on the screen?
Okay, that was a bit confusing. Let me put this another way. Imagine you didn’t have a keyboard. Imagine you had to write an essay using a mouse and a virtual keyboard on the screen.
That would suck, right? Clicking every character? It would take so long! Even though clicking one letter on a virtual keyboard takes less than a second, doing it repeatedly adds up. This same idea applies to interacting with your computer as a whole. For most things, the keyboard is faster than the mouse. Individual operations are not faster by hours or minutes or seconds. They’re faster by less than a second. But again, it adds up. This leads to the command line. The command line is an application with exactly this in mind. The keyboard is your only controller. The mouse is useless. Therefore, a GUI is pretty useless too. That’s why you only see characters on the screen and no buttons.
I’ll come clean though. At first, my motivation to learn how to use the command line was because it looks cool. It looks really cool. Ever seen a hacking scene in a movie where the hacker is moving a mouse to something? No! They’re typing gibberish because typing gibberish is so much faster than clicking gibberish.
Also once you get used to it, it’s really fast.
If you are a developer or are interesting in coding, the command line becomes a big part of your life. If not, the command line doesn’t really matter <- (a claim I’m making). BUT keyboard shortcuts to navigate your OS do. Since I’m on Mac, this is a list of easy shortcuts I can provide.
Shortcuts
Legend:
⌘ is the Command key
⌥ is the Option key
⇧ is the Shift key
“+” means pressing the two keys at the same time
MacOS
- Switch Apps: ⌘ + Tab
- Navigate Workspaces: Control + ← or →
- Search with spotlight: ⌘ + space
Applications
- New Tab: ⌘ + t
- Type in Nav Bar: ⌘ + l
- Navigate Tabs: ⌘ + ⌥ + ← or →
- Save File: ⌘ + s
- Close Window: ⌘ + w
- Undo: ⌘ + z
- Redo: ⌘ + ⇧ + z
- Zoom In/Out: ⌘ + + or -
- Quit App: ⌘ + q
Text
- Select All: ⌘ + a
- Make Bold: ⌘ + b
- Make Italic: ⌘ + i
- Select Words: ⌥ + ⇧ + ← or →
- Navigate Words: ⌥ + ← or →