![]() I'm hoping this will encourage looking up the shortcuts I would like to get better at, since I won't have to break out of the window or the line I am currently modifying to reference the list. ![]() You can be in the in the midst of a carefully assembled commandline instruction, think "Hey what is that key that would help me quickly navigate the cursor over to spot X?" or "what is that key to recursively search a directory under my cursor for a filename to pop it in right here?", access the reference list of keys, find the key you need and use it, all without losing your spot! One of the cool things about this, is that you can also instruct the fish shell to repaint the existing commandline after sending something to stdout, retaining the original cursor position. So, I set up Alt-K to print out a list of interesting hotkeys that I would like to get better at and internalize: Alt-K for in-line commandline help, retaining cursor position For my purposes, printing out a list of available bindings in the window seems sufficient. Others are custom behaviors or things I have added. Some of them are defaults that come with fish shell. There are a handful of shortcuts I'd like to get better at on the commandline. They are typically dealing with a very large list of potential actions/bindings, which is a little different than my case. Cmd-shift-p in VS Code and cmd-shift-a in Jetbrains' IDE's are two examples. Various developer IDE's have keyboard shortcuts that do this and they often enable searching lists of available commands. I do like the idea of a key you can press that pops up a reference list of other keyboard shortcuts. I don't like mousing up to a menubar item or having to fall back to the mouse to open a file either: too much break in flow. I ruled out paper/printed cheatsheets because I wanted something that travels with me, only requiring the footprint of my laptop. To start using them, I need a way to quickly reference a list of the ones I'm interested in. ![]() I feels like everrrryyyythhhinnnggg slooFor me, the best way to learn new keyboard shortcuts is to start using them. Pressing a whole lot of keys to do something that you know could be done with fewer keypresses.Tapping the breaks to shift your hand to use the mouse.One of the examples it comes with is what we're going to use: Change the meaning of the caps lock key.Even though typing speed is the least of a developer's bottlenecks, there are two particular speed bumps that can disrupt your flow when you are blazing a trail of fire, thinking and typing your way through solving a problem: Karabiner-elements can create complex, powerful modifications. This rarely used four-chord combination will help to prevent stepping on other application's hotkeys, but it's by no means required. (optionally) Karabiner-elements, for creating custom keyboard configurations - in this example, we'll remap the rarely-used caps lock key to function as a "hyper" key, equivalent to pressing cmd+option+shift+ctrl.Hammerspoon, the actual automation engine.Fortunately there is a solution in the form of desktop automation! For macos, it comes in two (free) parts you need to install: Unfortunately, it is not always possible to keep the meeting software focused (for example when screen sharing a presentation, or going through bugs in the issue tracker, keeping meeting notes, etc), so the mute hotkey is just out of reach. As a common courtesy (or to preserve privacy when required) it's recommended practice to mute yourself when you're not speaking, or at least when loud/persistent noises are to be expected. For better or worse it's now often part of a developer's daily routine to have one or several calls. 2020 was the year video conferencing became ubiquitous.
0 Comments
Leave a Reply. |