Add simple support for wrapscan (#13497)

For: #13417 

This is a simple version, I'm not sure if we just need to limit this
feature to vim mode, or maybe in normal editor mode, which involves
other logic like the location of the setting

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Hans
2024-07-10 20:42:37 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent 46645b552f
commit 3b823d4a0b
8 changed files with 137 additions and 19 deletions
+5
View File
@@ -25,6 +25,7 @@ pub struct EditorSettings {
pub expand_excerpt_lines: u32,
#[serde(default)]
pub double_click_in_multibuffer: DoubleClickInMultibuffer,
pub search_wrap: bool,
#[serde(default)]
pub jupyter: Jupyter,
}
@@ -228,6 +229,10 @@ pub struct EditorSettingsContent {
///
/// Default: select
pub double_click_in_multibuffer: Option<DoubleClickInMultibuffer>,
/// Whether the editor search results will loop
///
/// Default: true
pub search_wrap: Option<bool>,
/// Jupyter REPL settings.
pub jupyter: Option<Jupyter>,