carroarmato0 / fzf-carroarmato0

Snap package for the command-line fuzzy finder FZF
0 stars 0 forks source link

Ubuntu Budgie Tilix integration #1

Open fkromer opened 4 years ago

fkromer commented 4 years ago

How can I make the fzf snap app work with the Ubuntu Budgie terminal emulator Tilix?

carroarmato0 commented 4 years ago

What you can do is save the Bash autocompletion file somewhere from upstream and then load it when you start bash in your terminal. This works for me:

# Save the autocomplete functions in the home directory
curl -o ~/.fzf-autocomplete https://raw.githubusercontent.com/junegunn/fzf/master/shell/completion.bash

# In ~/.bash_aliases add the following lines
alias fzf="fzf-carroarmato0.fzf"
source ~/.fzf-autocomplete

And then restart the terminal.

You can verify that it works when appending "**" to something you want to fuzzy search. Perhaps someday I'll look into and figure out how to do this more automatically.