You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/10/20 23:54:00 UTC
[cloudstack-cloudmonkey] 02/04: cmk: disable search bar by default
on tab-tab completion
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
commit dbf748fc78e5a8ec5e56b63d542075dcb92f4f81
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Sat Oct 20 09:55:05 2018 +0530
cmk: disable search bar by default on tab-tab completion
Signed-off-by: Rohit Yadav <ro...@apache.org>
---
Makefile | 2 +-
cli/selector.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f351f98..ff2af4e 100644
--- a/Makefile
+++ b/Makefile
@@ -131,7 +131,7 @@ fmt: ; $(info $(M) Running gofmt…) @ ## Run gofmt on all source files
.PHONY: clean
clean: ; $(info $(M) Cleaning…) @
- @rm -rf bin dist
+ @rm -rf bin dist cloudstack-cloudmonkey
@rm -rf test/tests.* test/coverage.*
.PHONY: help
diff --git a/cli/selector.go b/cli/selector.go
index 19933f9..d40caf7 100644
--- a/cli/selector.go
+++ b/cli/selector.go
@@ -84,7 +84,7 @@ func showSelector(options []selectOption) selectOption {
Templates: templates,
Size: 5,
Searcher: searcher,
- StartInSearchMode: true,
+ StartInSearchMode: false,
Keys: &promptui.SelectKeys{
Prev: promptui.Key{Code: readline.CharPrev, Display: "↑"},
Next: promptui.Key{Code: readline.CharNext, Display: "↓"},