From 16a083cb69f63a79cdfa41011d29ae2f8cf4b5a2 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Tue, 17 Dec 2019 14:29:59 +0300 Subject: [PATCH] fix messages --- rc/modules/fzf-file.kak | 2 +- rc/modules/fzf-grep.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/modules/fzf-file.kak b/rc/modules/fzf-file.kak index a72243c..479a496 100644 --- a/rc/modules/fzf-file.kak +++ b/rc/modules/fzf-file.kak @@ -46,7 +46,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{ (fd) cmd="fd --type f --follow" ;; (find*|ag*|rg*|fd*) cmd=$kak_opt_fzf_file_command ;; (*) items_executable=$(printf "%s\n" "$kak_opt_fzf_file_command" | grep -o -E "[[:alpha:]]+" | head -1) - printf "%s\n" "echo -markup '{Information}'Warning: '$executable'' is not supported by fzf.kak.'" + printf "%s\n" "echo -markup %{{Information}Warning: '$items_executable' is not supported by fzf.kak.}" cmd=$kak_opt_fzf_file_command ;; esac diff --git a/rc/modules/fzf-grep.kak b/rc/modules/fzf-grep.kak index cd2b4d5..243329a 100644 --- a/rc/modules/fzf-grep.kak +++ b/rc/modules/fzf-grep.kak @@ -28,7 +28,7 @@ define-command -hidden fzf-grep %{ evaluate-commands %sh{ (rg) cmd="rg --line-number --no-column --no-heading --color=never ''" ;; (grep*|rg*) cmd=$kak_opt_fzf_grep_command ;; (*) items_executable=$(printf "%s\n" "$kak_opt_fzf_grep_command" | grep -o -E "[[:alpha:]]+" | head -1) - printf "%s\n" "echo -markup %{{Information}Warning: '$executable' is not supported by fzf.kak.}" + printf "%s\n" "echo -markup %{{Information}Warning: '$items_executable' is not supported by fzf.kak.}" cmd=$kak_opt_fzf_grep_command ;; esac