From cd69b56bab6c39b10c07dcab1647f6fdf095baa0 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Mon, 24 Sep 2018 14:36:35 +0300 Subject: [PATCH] fix example code --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d49e2b..b0390d1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ fzf-mode key bindings. User should not remember all possible commands. # after fzf returns its result # Second argument is a command to the fzf itself, which will be used # to provide list for fzf to show. - fzf "echo $1" "echo 'this␤is␤an␤example'" + fzf "echo $1" "echo 'this is an example' | tr ' ' '\n'" } map global fzf -docstring "fzf example command" e ': fzf-good-example' @@ -33,7 +33,7 @@ map global fzf -docstring "fzf example command" e ': fzf-good-example' Bad code: ```kak # example -def fzf-good-exmpl %{ fzf "echo $1" "echo 'actually I'm bad example'" } +def fzf-good-exmpl %{ fzf "echo $1" "echo 'actually I''m bad example' | tr ' ' '\n'" } ``` Although such code is short, it is not *safe*, because reloading kakrc will cause an error here.