@@ -122,6 +122,11 @@ fn build_help_lines(key_bindings: &KeyBindings, selector: HelpLinesSelector) ->
122122 "Set selected commits to be dropped" ,
123123 HelpLinesSelector :: Common ,
124124 ) ,
125+ (
126+ & key_bindings. action_cut,
127+ "Set selected commits to be cut / split (git-revise)" ,
128+ HelpLinesSelector :: Common ,
129+ ) ,
125130 (
126131 & key_bindings. action_index,
127132 "Set selected commits to be staged in the index (git-revise)" ,
@@ -185,6 +190,7 @@ pub(super) fn get_list_visual_mode_help_lines(key_bindings: &KeyBindings) -> Vec
185190const fn get_action_color ( action : Action ) -> DisplayColor {
186191 match action {
187192 Action :: Break => DisplayColor :: ActionBreak ,
193+ Action :: Cut => DisplayColor :: ActionCut ,
188194 Action :: Drop => DisplayColor :: ActionDrop ,
189195 Action :: Edit => DisplayColor :: ActionEdit ,
190196 Action :: Exec => DisplayColor :: ActionExec ,
@@ -209,7 +215,7 @@ pub(super) fn get_line_action_maximum_width(todo_file: &TodoFile) -> usize {
209215 let action_length = match line. get_action ( ) {
210216 // allow these to overflow their bounds
211217 & Action :: Exec | & Action :: UpdateRef => 0 ,
212- & Action :: Drop | & Action :: Edit | & Action :: Noop | & Action :: Pick => 4 ,
218+ & Action :: Cut | & Action :: Drop | & Action :: Edit | & Action :: Noop | & Action :: Pick => 4 ,
213219 & Action :: Break | & Action :: Label | & Action :: Reset | & Action :: Merge | & Action :: Index => 5 ,
214220 & Action :: Fixup => {
215221 if line. option ( ) . is_some ( ) {
@@ -299,7 +305,7 @@ pub(super) fn get_todo_line_segments(
299305
300306 // render hash
301307 match * action {
302- Action :: Drop | Action :: Edit | Action :: Fixup | Action :: Index | Action :: Pick | Action :: Reword | Action :: Squash => {
308+ Action :: Cut | Action :: Drop | Action :: Edit | Action :: Fixup | Action :: Index | Action :: Pick | Action :: Reword | Action :: Squash => {
303309 let action_width = if is_full_width { 8 } else { 3 } ;
304310 let max_index = cmp:: min ( line. get_hash ( ) . len ( ) , action_width) ;
305311 let search_match = search_term. map_or ( false , |term| line. get_hash ( ) . starts_with ( term) ) ;
0 commit comments