From 0b023e1bb6c3639148a283acd5ba5aca25404e4b Mon Sep 17 00:00:00 2001 From: Moshe Yamini Date: Wed, 5 Mar 2025 12:30:20 +0200 Subject: [PATCH 1/3] feat: enhance Zsh completion with menu selection --- lib/src/installer/shell_completion_configuration.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/installer/shell_completion_configuration.dart b/lib/src/installer/shell_completion_configuration.dart index ee19dca..b2f4fa5 100644 --- a/lib/src/installer/shell_completion_configuration.dart +++ b/lib/src/installer/shell_completion_configuration.dart @@ -78,6 +78,9 @@ if type compdef &>/dev/null; then IFS=\$'\n' reply=(\$(COMP_CWORD="\$((CURRENT-1))" COMP_LINE="\$BUFFER" COMP_POINT="\$CURSOR" $rootCommand completion -- "\${words[@]}")) IFS=\$si + zstyle ':completion:*' menu yes select + zstyle ':completion:*' list-colors '' + if [[ -z "\$reply" ]]; then _path_files else From 8cf21904d48290acd8ad90aced341b2fd09c2121 Mon Sep 17 00:00:00 2001 From: Moshe Yamini Date: Sun, 31 Aug 2025 11:52:42 +0300 Subject: [PATCH 2/3] Fix zsh shell configuration test --- test/src/installer/shell_completion_configuration_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/src/installer/shell_completion_configuration_test.dart b/test/src/installer/shell_completion_configuration_test.dart index 1e885aa..19b879e 100644 --- a/test/src/installer/shell_completion_configuration_test.dart +++ b/test/src/installer/shell_completion_configuration_test.dart @@ -35,6 +35,9 @@ if type compdef &>/dev/null; then IFS=\$'\n' reply=(\$(COMP_CWORD="\$((CURRENT-1))" COMP_LINE="\$BUFFER" COMP_POINT="\$CURSOR" very_good completion -- "\${words[@]}")) IFS=\$si + + zstyle ':completion:*' menu yes select + zstyle ':completion:*' list-colors '' if [[ -z "\$reply" ]]; then _path_files From dc5c62fc29429f9fb63a3a0f5d16c4d8f225fc57 Mon Sep 17 00:00:00 2001 From: Moshe Yamini Date: Tue, 2 Sep 2025 11:21:39 +0300 Subject: [PATCH 3/3] Fix formating --- lib/src/installer/shell_completion_configuration.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/installer/shell_completion_configuration.dart b/lib/src/installer/shell_completion_configuration.dart index b2f4fa5..4151c21 100644 --- a/lib/src/installer/shell_completion_configuration.dart +++ b/lib/src/installer/shell_completion_configuration.dart @@ -77,7 +77,7 @@ if type compdef &>/dev/null; then IFS=\$'\n' reply=(\$(COMP_CWORD="\$((CURRENT-1))" COMP_LINE="\$BUFFER" COMP_POINT="\$CURSOR" $rootCommand completion -- "\${words[@]}")) IFS=\$si - + zstyle ':completion:*' menu yes select zstyle ':completion:*' list-colors ''