mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:55:42 +02:00
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:
committed by
GitHub
parent
93b407fa88
commit
889fe7f97b
@ -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,
|
||||||
|
Reference in New Issue
Block a user