vim: Add Multi Replace mode in Vim (#8469)
For #4440, I've only added support for normal, if it's visual mode, would we like this to delete the current selection row and enter insert mode? --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
@@ -363,7 +363,7 @@ pub struct Editor {
|
||||
buffer: Model<MultiBuffer>,
|
||||
/// Map of how text in the buffer should be displayed.
|
||||
/// Handles soft wraps, folds, fake inlay text insertions, etc.
|
||||
display_map: Model<DisplayMap>,
|
||||
pub display_map: Model<DisplayMap>,
|
||||
pub selections: SelectionsCollection,
|
||||
pub scroll_manager: ScrollManager,
|
||||
columnar_selection_tail: Option<Anchor>,
|
||||
@@ -423,6 +423,7 @@ pub struct Editor {
|
||||
_subscriptions: Vec<Subscription>,
|
||||
pixel_position_of_newest_cursor: Option<gpui::Point<Pixels>>,
|
||||
gutter_width: Pixels,
|
||||
pub vim_replace_map: HashMap<Range<usize>, String>,
|
||||
style: Option<EditorStyle>,
|
||||
editor_actions: Vec<Box<dyn Fn(&mut ViewContext<Self>)>>,
|
||||
show_copilot_suggestions: bool,
|
||||
@@ -1568,6 +1569,7 @@ impl Editor {
|
||||
show_cursor_names: false,
|
||||
hovered_cursors: Default::default(),
|
||||
editor_actions: Default::default(),
|
||||
vim_replace_map: Default::default(),
|
||||
show_copilot_suggestions: mode == EditorMode::Full,
|
||||
custom_context_menu: None,
|
||||
_subscriptions: vec![
|
||||
|
||||
Reference in New Issue
Block a user