diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index b00e02b94..1b0c557e6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1131,6 +1131,10 @@ where doc!(cx.editor).line_ending.as_str().chars().next().unwrap() } + KeyEvent { + code: KeyCode::Tab, .. + } => '\t', + KeyEvent { code: KeyCode::Char(ch), .. @@ -1277,6 +1281,9 @@ fn replace(cx: &mut Context) { code: KeyCode::Enter, .. } => Some(doc.line_ending.as_str()), + KeyEvent { + code: KeyCode::Tab, .. + } => Some("\t"), _ => None, };