From ef7902395ee4a32c683846492d1809e57d26b27e Mon Sep 17 00:00:00 2001 From: Bownairo Date: Mon, 2 Sep 2019 20:55:34 -0700 Subject: [PATCH] Pass custom file to readtags When fzf_tag_file_name is passed, it needs to be passed to readtags, too. --- rc/modules/fzf-ctags.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/modules/fzf-ctags.kak b/rc/modules/fzf-ctags.kak index fd02a9c..04ed073 100644 --- a/rc/modules/fzf-ctags.kak +++ b/rc/modules/fzf-ctags.kak @@ -808,9 +808,9 @@ define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{ fi if [ -n "$1" ]; then - cmd="cd $path; readtags -Q '(eq? \$kind \"$1\")' -l | cut -f1" + cmd="cd $path; readtags -t $kak_opt_fzf_tag_file_name -Q '(eq? \$kind \"$1\")' -l | cut -f1" else - cmd="cd $path; readtags -l | cut -f1" + cmd="cd $path; readtags -t $kak_opt_fzf_tag_file_name -l | cut -f1" fi message="Jump to a symbol''s definition