@@ -112,6 +112,18 @@ pub enum EditCommand {
112112 select : bool ,
113113 } ,
114114
115+ /// Move one line up
116+ MoveLineUp {
117+ /// Select the text between the current cursor position and destination
118+ select : bool ,
119+ } ,
120+
121+ /// Move one line down
122+ MoveLineDown {
123+ /// Select the text between the current cursor position and destination
124+ select : bool ,
125+ } ,
126+
115127 /// Move one character to the left
116128 MoveLeft {
117129 /// Select the text between the current cursor position and destination
@@ -482,6 +494,8 @@ impl Display for EditCommand {
482494 EditCommand :: MoveToLineEnd { .. } => {
483495 write ! ( f, "MoveToLineEnd Optional[select: <bool>]" )
484496 }
497+ EditCommand :: MoveLineUp { .. } => write ! ( f, "MoveLineUp Optional[select: <bool>]" ) ,
498+ EditCommand :: MoveLineDown { .. } => write ! ( f, "MoveLineDown Optional[select: <bool>]" ) ,
485499 EditCommand :: MoveLeft { .. } => write ! ( f, "MoveLeft Optional[select: <bool>]" ) ,
486500 EditCommand :: MoveRight { .. } => write ! ( f, "MoveRight Optional[select: <bool>]" ) ,
487501 EditCommand :: MoveWordLeft { .. } => write ! ( f, "MoveWordLeft Optional[select: <bool>]" ) ,
@@ -613,6 +627,8 @@ impl EditCommand {
613627 | EditCommand :: MoveToLineEnd { select, .. }
614628 | EditCommand :: MoveToLineNonBlankStart { select, .. }
615629 | EditCommand :: MoveToPosition { select, .. }
630+ | EditCommand :: MoveLineUp { select, .. }
631+ | EditCommand :: MoveLineDown { select, .. }
616632 | EditCommand :: MoveLeft { select, .. }
617633 | EditCommand :: MoveRight { select, .. }
618634 | EditCommand :: MoveWordLeft { select, .. }
0 commit comments