From 9070b85f362b5c92eebb2d94c68e6d8d95217a56 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Mon, 18 Dec 2023 20:58:16 -0800 Subject: [PATCH] Revert "Revert "Enable highlighting of search matches by default for new installs (see #112)" because it breaks some tests" This reverts commit a453a858b644a4749732364b27a8a1c84924544e. --- client/cmd/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmd/install.go b/client/cmd/install.go index 7030d42..06d1c8f 100644 --- a/client/cmd/install.go +++ b/client/cmd/install.go @@ -569,13 +569,13 @@ func setup(userSecret string, isOffline bool) error { } fmt.Println("Setting secret hishtory key to " + string(userSecret)) - // Create and set the config + // Create and set the config with the defaults that we want for new installs var config hctx.ClientConfig config.UserSecret = userSecret config.IsEnabled = true config.DeviceId = uuid.Must(uuid.NewRandom()).String() config.ControlRSearchEnabled = true - // TODO: Set config.HighlightMatches = true here, so that we enable highlighting by default + config.HighlightMatches = true config.AiCompletion = true config.IsOffline = isOffline config.EnablePresaving = true