Add KillLine to the EditCommand parser (#16221)

# Description
Follow-up to https://github.com/nushell/reedline/pull/901
Closes https://github.com/nushell/reedline/issues/935

# User-Facing Changes
You can now use `{edit: KillLine}` to mimic emacs `Ctrl-K` behavior`
This commit is contained in:
Stefan Holderbach
2025-07-22 14:12:24 +02:00
committed by GitHub
parent 93b407fa88
commit 889fe7f97b

View File

@ -1172,6 +1172,7 @@ fn edit_from_record(
"cutfromlinestart" => EditCommand::CutFromLineStart, "cutfromlinestart" => EditCommand::CutFromLineStart,
"cuttoend" => EditCommand::CutToEnd, "cuttoend" => EditCommand::CutToEnd,
"cuttolineend" => EditCommand::CutToLineEnd, "cuttolineend" => EditCommand::CutToLineEnd,
"killline" => EditCommand::KillLine,
"cutwordleft" => EditCommand::CutWordLeft, "cutwordleft" => EditCommand::CutWordLeft,
"cutbigwordleft" => EditCommand::CutBigWordLeft, "cutbigwordleft" => EditCommand::CutBigWordLeft,
"cutwordright" => EditCommand::CutWordRight, "cutwordright" => EditCommand::CutWordRight,