From 0626f5f4dae0bfee1bd33304ed2a94f4cfeefce3 Mon Sep 17 00:00:00 2001 From: Charlie Groves Date: Fri, 5 Aug 2022 06:10:12 -0400 Subject: [PATCH] Default to auto-focus off --- book/src/configuration.md | 2 +- helix-view/src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/configuration.md b/book/src/configuration.md index 68653f495013..4bf237405ff3 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -44,7 +44,7 @@ You may also specify a file to use for configuration with the `-c` or | `gutters` | Gutters to display: Available are `diagnostics` and `line-numbers` and `spacer`, note that `diagnostics` also includes other features like breakpoints, 1-width padding will be inserted if gutters is non-empty | `["diagnostics", "line-numbers"]` | | `auto-completion` | Enable automatic pop up of auto-completion. | `true` | | `auto-format` | Enable automatic formatting on save. | `true` | -| `auto-save` | Enable automatic saving on focus moving away from Helix. | `true` | +| `auto-save` | Enable automatic saving on focus moving away from Helix. | `false` | | `idle-timeout` | Time in milliseconds since last keypress before idle timers trigger. Used for autocompletion, set to 0 for instant. | `400` | | `completion-trigger-len` | The min-length of word under cursor to trigger autocompletion | `2` | | `auto-info` | Whether to display infoboxes | `true` | diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 788908bb8370..df184084f702 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -488,7 +488,7 @@ impl Default for Config { auto_pairs: AutoPairConfig::default(), auto_completion: true, auto_format: true, - auto_save: true, + auto_save: false, idle_timeout: Duration::from_millis(400), completion_trigger_len: 2, auto_info: true,