From f5833252910837dfddda21be3e78d272148b1cbd Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Mon, 21 Sep 2020 14:23:50 -0300 Subject: [PATCH 1/2] fzf: move completion functionality to correct path `shell/completion.bash` is not argument completion, it's a completion functionality for FZF (integration with `kill`, etc). Like the one for ZSH, it should go to `/usr/share/doc/fzf`. --- srcpkgs/fzf/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/fzf/template b/srcpkgs/fzf/template index 109f5d44028..b4f43eba470 100644 --- a/srcpkgs/fzf/template +++ b/srcpkgs/fzf/template @@ -22,7 +22,7 @@ post_install() { sed -i -e 's#source ~/\.fzf\.bash; ##' shell/key-bindings.bash vinstall plugin/fzf.vim 644 usr/share/vim/vimfiles/plugin - vinstall shell/completion.bash 644 usr/share/bash-completion/completions fzf + vinstall shell/completion.bash 644 usr/share/doc/fzf vinstall shell/completion.zsh 644 usr/share/doc/fzf vinstall shell/key-bindings.zsh 644 usr/share/doc/fzf vinstall shell/key-bindings.bash 644 usr/share/doc/fzf From 33d5c8501b7bdd1f24cddb20997f6634e627bc17 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Thu, 7 May 2020 21:04:47 -0300 Subject: [PATCH 2/2] fzf: install fzf.vim to Neovim plugin directory For Vim users, FZF works out of the box, but Neovim users have to manually copy /usr/share/vim/vimfiles/plugin/fzf.vim to the proper Neovim equivalent. --- srcpkgs/fzf/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/fzf/template b/srcpkgs/fzf/template index b4f43eba470..948d4b58a16 100644 --- a/srcpkgs/fzf/template +++ b/srcpkgs/fzf/template @@ -1,7 +1,7 @@ # Template file for 'fzf' pkgname=fzf version=0.22.0 -revision=1 +revision=2 build_style=go go_import_path=github.com/junegunn/fzf hostmakedepends="git" @@ -22,6 +22,7 @@ post_install() { sed -i -e 's#source ~/\.fzf\.bash; ##' shell/key-bindings.bash vinstall plugin/fzf.vim 644 usr/share/vim/vimfiles/plugin + vinstall plugin/fzf.vim 644 usr/share/nvim/runtime/plugin vinstall shell/completion.bash 644 usr/share/doc/fzf vinstall shell/completion.zsh 644 usr/share/doc/fzf vinstall shell/key-bindings.zsh 644 usr/share/doc/fzf