Enable highlighting of search matches by default for new installs (see #112)

This commit is contained in:
David Dworken 2023-11-12 05:00:47 -08:00
parent 41391fba3a
commit 6c24ddfd46
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
// 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
err := hctx.SetConfig(&config)