@@ -61,8 +61,8 @@ use std::collections::HashMap;
61// in kakoune these are alt-h alt-l / gh gl
61// in kakoune these are alt-h alt-l / gh gl
62// select from curs to begin end / move curs to begin end
62// select from curs to begin end / move curs to begin end
63// 0 = start of line
63// 0 = start of line
64−// ^ = start of line (first non blank char)
64+// ^ = start of line(first non blank char) || Home = start of line(first non blank char)
65−// $ = end of line
65+// $ = end of line || End = end of line
67// z = save selections
67// z = save selections
68// Z = restore selections
68// Z = restore selections
@@ -153,6 +153,16 @@ pub fn default() -> Keymaps {
154 key!('r') => commands::replace,
154 key!('r') => commands::replace,
157+ code: KeyCode::Home,
158+ modifiers: KeyModifiers::NONE
159+ } => commands::move_line_start,
163+ modifiers: KeyModifiers::NONE
164+ } => commands::move_line_end,
156 key!('w') => commands::move_next_word_start,
166 key!('w') => commands::move_next_word_start,
157 key!('b') => commands::move_prev_word_start,
167 key!('b') => commands::move_prev_word_start,
158 key!('e') => commands::move_next_word_end,
168 key!('e') => commands::move_next_word_end,
@@ -306,13 +316,21 @@ pub fn default() -> Keymaps {
307 key!('t') => commands::extend_till_char,
317 key!('t') => commands::extend_till_char,
308 key!('f') => commands::extend_next_char,
318 key!('f') => commands::extend_next_char,
309 key!('T') => commands::extend_till_prev_char,
320 key!('T') => commands::extend_till_prev_char,
310 key!('F') => commands::extend_prev_char,
321 key!('F') => commands::extend_prev_char,
323+ code: KeyCode::Home,
324+ modifiers: KeyModifiers::NONE
325+ } => commands::extend_line_start,
328+ modifiers: KeyModifiers::NONE
329+ } => commands::extend_line_end,
312 KeyEvent {
330 KeyEvent {
313 code: KeyCode::Esc,
331 code: KeyCode::Esc,
314 modifiers: KeyModifiers::NONE
332 modifiers: KeyModifiers::NONE
315− } => commands::exit_select_mode as Command,
333+ } => commands::exit_select_mode,
317 .into_iter(),
335 .into_iter(),