Revert "Enable highlighting of search matches by default for new installs (see #112)" because it breaks some tests

This reverts commit 6c24ddfd46.
This commit is contained in:
David Dworken 2023-11-12 09:14:57 -08:00
parent c52dbebb1b
commit a453a858b6
No known key found for this signature in database

View File

@ -560,13 +560,13 @@ func setup(userSecret string, isOffline bool) error {
}
fmt.Println("Setting secret hishtory key to " + string(userSecret))
// Create and set the config with the defaults that we want for new installs
// Create and set the config
var config hctx.ClientConfig
config.UserSecret = userSecret
config.IsEnabled = true
config.DeviceId = uuid.Must(uuid.NewRandom()).String()
config.ControlRSearchEnabled = true
config.HighlightMatches = true
// TODO: Set config.HighlightMatches = true here, so that we enable highlighting by default
config.AiCompletion = true
config.IsOffline = isOffline
err := hctx.SetConfig(&config)