this might be a great post, but I feel that starting with the fzf shell integrations is doing its goal of answering "now what" to even less of an audience
i use ctrl-r and am familiar with it in bash, asking me to replace it is an unacceptable steep ask. tell me how to exercise the same behavior without replacing my defaults
it's an enhanced default, really. you do want it to replace ctrl-r; half the magic is keeping your muscle memory and getting an experience that is enriched but otherwise the same as your old flow. ctrl-r is probably my most used command and fzf was a drop in enhancement with no learning curve and since it's launched with ctrl-r I don't forget to use fzf.
Though I eventually switched to Fish shell, which just gives you the same behavior out of the box...
You can also use the ctrl-t shortcut for finding files to include in your command. I use this with git a lot when picking which files I want to be associated with a specific change. I've also used it to filter grep output to whittle down what I'm looking for.
I use this mainly to get a list of local branches to delete after I've merged a pull request. There are probably better ways to do this, but this hasn't failed me yet.
alias awp='export AWS_PROFILE="$(grep -e "\[\(.*\)\]" ~/.aws/config | sed -e "s/\[//g" | sed -e "s/\]//g" | cut -d " " -f 2 | sort -u | fzf)"'
This enables me to quickly change AWS profiles according to what is in ~/.aws/config. I'm now considering creating a similar alias to change namespaces in Kubernetes as well...
There is the fzf.vim plugin, which lets you use fzf inside vim not only to open files, but also to fuzzy find buffers, command history, file content and much more.
owent | 17 hours ago
I'm definitely in the target audience for this. I installed fzf, decided it's brilliant and forget to ever use it. Maybe now I will?
donio | 12 hours ago
The key is to integrate it into your existing shell setup, personal scripts and aliases. I use fzf all the time but I almost never launch it directly.
jrwren | 15 hours ago
this might be a great post, but I feel that starting with the fzf shell integrations is doing its goal of answering "now what" to even less of an audience
i use ctrl-r and am familiar with it in bash, asking me to replace it is an unacceptable steep ask. tell me how to exercise the same behavior without replacing my defaults
gigawhitlocks | 12 hours ago
it's an enhanced default, really. you do want it to replace ctrl-r; half the magic is keeping your muscle memory and getting an experience that is enriched but otherwise the same as your old flow. ctrl-r is probably my most used command and fzf was a drop in enhancement with no learning curve and since it's launched with ctrl-r I don't forget to use fzf.
Though I eventually switched to Fish shell, which just gives you the same behavior out of the box...
polywolf | 13 hours ago
this has convinced me, i will be adding it + its shell integrations shortly. TIL!
ndegruchy | 8 hours ago
You can also use the
ctrl-tshortcut for finding files to include in your command. I use this withgita lot when picking which files I want to be associated with a specific change. I've also used it to filter grep output to whittle down what I'm looking for.usrme | 4 hours ago
Besides improving searching the shell history, I've used
fzfwith the following two aliases:alias gbd='git -c color.ui=never branch | fzf | xargs -I {} git branch -D {}'I use this mainly to get a list of local branches to delete after I've merged a pull request. There are probably better ways to do this, but this hasn't failed me yet.
alias awp='export AWS_PROFILE="$(grep -e "\[\(.*\)\]" ~/.aws/config | sed -e "s/\[//g" | sed -e "s/\]//g" | cut -d " " -f 2 | sort -u | fzf)"'This enables me to quickly change AWS profiles according to what is in
~/.aws/config. I'm now considering creating a similar alias to change namespaces in Kubernetes as well...drrobotic | 2 hours ago
There is the fzf.vim plugin, which lets you use fzf inside vim not only to open files, but also to fuzzy find buffers, command history, file content and much more.