1
0
Fork 0

ignore path in project select menu

This commit is contained in:
Andrey Listopadov 2021-03-14 15:23:10 +03:00
parent 2ff1246599
commit 94b259cbd8

View file

@ -27,7 +27,7 @@ map global fzf-project -docstring "rename project" 'r' '<esc>: fzf-rename-projec
define-command -hidden fzf-project %{ evaluate-commands %sh{ define-command -hidden fzf-project %{ evaluate-commands %sh{
if [ -s ${kak_opt_fzf_project_file} ]; then 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' "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 else
printf "%s\n" "echo -markup %{{Information}No project defined in '${kak_opt_fzf_project_file}'}" printf "%s\n" "echo -markup %{{Information}No project defined in '${kak_opt_fzf_project_file}'}"
fi fi