on master help sign in
move to first nonwhitespace on shift-i

This matches the behaviour in vim and kak

commitc0d32707d03d71434c290e18d6db18b3b2de3875 authorRobin van Dijk <robin@robinjint.nl> dateThu 10 Jun 2021, 13:10 (5 years ago) parentd8df10f
1 file changed+2−2
helix-term/src/commands.rs+2−2
helix-term/src/commands.rs+2−2
@@ -1189,9 +1189,9 @@ pub fn buffer_picker(cx: &mut Context) {
11891189 cx.push_layer(Box::new(picker));
11901190}
11911191
1192−// I inserts at the start of each line with a selection
1192+// I inserts at the first nonwhitespace character of each line with a selection
11931193pub fn prepend_to_line(cx: &mut Context) {
1194− move_line_start(cx);
1194+ move_first_nonwhitespace(cx);
11951195 let doc = cx.doc();
11961196 enter_insert_mode(doc);
11971197}