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