FZF_DEFAULT_COMMAND="plocate ''" \
fzf --bind "change:reload:plocate {q} || true" \
--ansi --phony --query "" --preview 'file {}' --bind '?:preview:cat {}'
https://plocate.sesse.net/I don't actually use it. It's more a fun hack.
21–30 of 40 posts
FZF_DEFAULT_COMMAND="plocate ''" \
fzf --bind "change:reload:plocate {q} || true" \
--ansi --phony --query "" --preview 'file {}' --bind '?:preview:cat {}'
https://plocate.sesse.net/I don't actually use it. It's more a fun hack.
My favorite ~/.gitconfig [alias] that uses fzf: # Allows you to easily pick what to rebase frbi = "!f() { git rebase -i $(git log --pretty=oneline --color=always | fzf --ansi | cut -d ' ' -f1)^ ; }; f" Then just do: git frbi
fzy[1] is a less bloated alternative, written in C. fzf is neat, but it does too much. [1]: https://github.com/jhawthorn/fzy
My favorite ~/.gitconfig [alias] that uses fzf: # Allows you to easily pick what to rebase frbi = "!f() { git rebase -i $(git log --pretty=oneline --color=always | fzf --ansi | cut -d ' ' -f1)^ ; }; f" Then just do: git frbi
sw = !git checkout $(git branch -a --format '%(refname:short)' | sed 's~origin/~~' | sort | uniq | fzf)
Just type `git sw` and fzfuzzy type the branch name you want to go to.Personally, I'm a fan of using fzf with tmux 3.2+ so I get popup windows instead. They're great.
Personally, I'm a fan of using fzf with tmux 3.2+ so I get popup windows instead. They're great.
Can you elaborate on that? I use fzf with tmux as well, but I'm not sure what you mean by popup windows. Similar to vim splits?
npmrf () {
local script
script=$(cat package.json | jq -r '.scripts | keys[] ' | sort | fzf) && npm run $script
}
Another usecase is tracking hours with Clockify. I was frustrated opening up the web everytime, so I wrote a script using fzf, httpie and jq. Love it now. [1]plocate is a very fast mlocate alternative that uses indexes over trigrams and io_uring for reading the database. With fzf you can have a pretty fast fuzzy search over your entire indexed disk. FZF_DEFAULT_COMMAND="plocate ''" \ fzf --bind "change:reload:plocate {q} || true" \ --ansi --phony --query "" --preview 'file {}' --bind '?:preview:cat {}' https://plocate.sesse.net/ I don't actually use it. It's more a fun ha…