move to first nonwhitespace on shift-i
This matches the behaviour in vim and kak
This commit is contained in:
parent
d8df10f295
commit
c0d32707d0
1 changed files with 2 additions and 2 deletions
|
@ -1189,9 +1189,9 @@ pub fn buffer_picker(cx: &mut Context) {
|
|||
cx.push_layer(Box::new(picker));
|
||||
}
|
||||
|
||||
// I inserts at the start of each line with a selection
|
||||
// I inserts at the first nonwhitespace character of each line with a selection
|
||||
pub fn prepend_to_line(cx: &mut Context) {
|
||||
move_line_start(cx);
|
||||
move_first_nonwhitespace(cx);
|
||||
let doc = cx.doc();
|
||||
enter_insert_mode(doc);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue