mirror of https://github.com/helix-editor/helix
move to first nonwhitespace on shift-i
This matches the behaviour in vim and kakpull/221/head
parent
d8df10f295
commit
c0d32707d0
|
@ -1189,9 +1189,9 @@ pub fn buffer_picker(cx: &mut Context) {
|
||||||
cx.push_layer(Box::new(picker));
|
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) {
|
pub fn prepend_to_line(cx: &mut Context) {
|
||||||
move_line_start(cx);
|
move_first_nonwhitespace(cx);
|
||||||
let doc = cx.doc();
|
let doc = cx.doc();
|
||||||
enter_insert_mode(doc);
|
enter_insert_mode(doc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue