Using this gist to share out a lot of the links, and kind of a tl;dr of the things that I showed today.
Here is the slide deck if you want to review any of the visuals.
Ctrl + r
- type search termCtrl + r
- to go further back in historyCtrl + s
- to go forward in history
If you would rather see a list view of this, you might use something like this instead:
history | grep searchterm
You may have noticed when I was demoing that I get auto completion of the last command I ran that has the search term that I have typed natively. I get that for free with the zsh-autocompletions plugin. Highly recommend :).
Not sure I can tl;dr this section that well, but here are some resources worth checking out:
First utility that I use most days - tldr
.
The tldr pages are a community effort to simplify the beloved man pages with practical examples.
npm install -g tldr
tldr <utility>
Probably best to go straight to the source on this one:
As discussed in the presentation, you can also rebind these keys to better suit you. I don't much care to send screenshots to the desktop, I prefer it go straight to the clipboard. Here is how you would rebind those keys.
I am sure there are a lot of tools in this space, but the one that I have used with a lot of success is Gifox.
Cmd + d
- take highlighted term and find next occurence, add cursorCmd + Shift + l
- take highlighted term, find all occurences, add cursorOption + Shift + i
- create a cursor at the end of every highlighted lineAlt/Option + Click
- create a new instance of cursor
Tanner shared this fantastic gist that he wrote himself that is in a similar vein to this topic. Lots of little shortcuts and concepts - definitely worth a read!
https://gist.github.com/tannerhodges/9ad999e39007ad4921569975f416734f