From 94b259cbd8bd643eb49077f5b823d570377b46a8 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sun, 14 Mar 2021 15:23:10 +0300 Subject: [PATCH] ignore path in project select menu --- rc/modules/fzf-project.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/modules/fzf-project.kak b/rc/modules/fzf-project.kak index dd644a4..d4fc3bf 100644 --- a/rc/modules/fzf-project.kak +++ b/rc/modules/fzf-project.kak @@ -27,7 +27,7 @@ map global fzf-project -docstring "rename project" 'r' ': fzf-rename-projec define-command -hidden fzf-project %{ evaluate-commands %sh{ if [ -s ${kak_opt_fzf_project_file} ]; then printf '%s\n' "info -title %{fzf open project} %{Change the server's working directory to selected project}" - printf "%s\n" "fzf -kak-cmd change-directory -items-cmd %{cat ${kak_opt_fzf_project_file}} -fzf-args %{--reverse} -post-action fzf-file -filter %{sed 's/.*: //'}" + printf "%s\n" "fzf -kak-cmd change-directory -items-cmd %{cat ${kak_opt_fzf_project_file}} -fzf-args %{--reverse --delimiter=':' -n'1'} -post-action fzf-file -filter %{sed 's/.*: //'}" else printf "%s\n" "echo -markup %{{Information}No project defined in '${kak_opt_fzf_project_file}'}" fi