vim: smartcase find option (#9033)

Release Notes:

- Added option `use_smartcase_find` to the vim-mode
This commit is contained in:
Rom Grk 2024-03-07 21:44:20 -05:00 committed by GitHub
parent d247086b21
commit f67abd2943
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 127 additions and 22 deletions

View file

@ -487,6 +487,7 @@ impl Vim {
} else {
FindRange::SingleLine
},
smartcase: VimSettings::get_global(cx).use_smartcase_find,
};
Vim::update(cx, |vim, _| {
vim.workspace_state.last_find = Some(find.clone())
@ -502,6 +503,7 @@ impl Vim {
} else {
FindRange::SingleLine
},
smartcase: VimSettings::get_global(cx).use_smartcase_find,
};
Vim::update(cx, |vim, _| {
vim.workspace_state.last_find = Some(find.clone())
@ -642,12 +644,14 @@ struct VimSettings {
// some magic where yy is system and dd is not.
pub use_system_clipboard: UseSystemClipboard,
pub use_multiline_find: bool,
pub use_smartcase_find: bool,
}
#[derive(Clone, Default, Serialize, Deserialize, JsonSchema)]
struct VimSettingsContent {
pub use_system_clipboard: Option<UseSystemClipboard>,
pub use_multiline_find: Option<bool>,
pub use_smartcase_find: Option<bool>,
}
impl Settings for VimSettings {