@ -273,8 +273,8 @@ impl MappableCommand {
diagnostics_picker , "Open diagnostic picker" ,
diagnostics_picker , "Open diagnostic picker" ,
workspace_diagnostics_picker , "Open workspace diagnostic picker" ,
workspace_diagnostics_picker , "Open workspace diagnostic picker" ,
last_picker , "Open last picker" ,
last_picker , "Open last picker" ,
prepend_to_line , "Insert at start of line" ,
insert_at_line_start , "Insert at start of line" ,
append_to_line, "Append to end of line",
insert_at_line_end, "Insert at end of line",
open_below , "Open new line below selection" ,
open_below , "Open new line below selection" ,
open_above , "Open new line above selection" ,
open_above , "Open new line above selection" ,
normal_mode , "Enter normal mode" ,
normal_mode , "Enter normal mode" ,
@ -2483,13 +2483,13 @@ fn last_picker(cx: &mut Context) {
}
}
// I inserts at the first nonwhitespace character of each line with a selection
// I inserts at the first nonwhitespace character of each line with a selection
fn prepend_to_line ( cx : & mut Context ) {
fn insert_at_line_start ( cx : & mut Context ) {
goto_first_nonwhitespace ( cx ) ;
goto_first_nonwhitespace ( cx ) ;
enter_insert_mode ( cx ) ;
enter_insert_mode ( cx ) ;
}
}
// A inserts at the end of each line with a selection
// A inserts at the end of each line with a selection
fn append_to_line ( cx : & mut Context ) {
fn insert_at_line_end ( cx : & mut Context ) {
enter_insert_mode ( cx ) ;
enter_insert_mode ( cx ) ;
let ( view , doc ) = current ! ( cx . editor ) ;
let ( view , doc ) = current ! ( cx . editor ) ;