5 ms·
With ctrl+r, if you press it twice, it will autofill the search with whatever you last searched for. pressing it more will go back through the history. Been usi
by voidUpdate 6mo ago
With ctrl+r, if you press it twice, it will autofill the search with whatever you last searched for. pressing it more will go back through the history. Been using that a lot recently when doing docker stuff. ctrl+r, type the container name, keep going until I get the compose build command. ctrl+r, ctrl+r, repeat until the log command. Then I can just mash ctrl+r to get the build and log commands. Ctrl+r is your friend. ctrl+r
- arcanemachiner 6mo agoMake sure to add fzf + shell integration for maximum Ctrl+r goodness.
- ZeroGravitas 6mo agoAlso worth reading the intro to fzf search syntax. https://junegunn.github.io/fzf/search-syntax https://junegunn.github.io/fzf/search-syntax. The $ and bang and exact search are neat, but the bit at the bottom as to why `gadd` or `gas` is a better search for `git add something` than something with full words and spaces is a revelation when first using fzf.