File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,13 @@ impl Component for RevisionFilesComponent {
446
446
)
447
447
. order ( order:: RARE_ACTION ) ,
448
448
) ;
449
+ out. push ( CommandInfo :: new (
450
+ strings:: commands:: open_branch_select_popup (
451
+ & self . key_config ,
452
+ ) ,
453
+ true ,
454
+ self . is_visible ( ) || force_all, // (self.visible && !self.is_search_pending()) || force_all,
455
+ ) ) ;
449
456
tree_nav_cmds ( & self . tree , & self . key_config , out) ;
450
457
} else {
451
458
self . current_file . commands ( out, force_all) ;
@@ -523,6 +530,12 @@ impl Component for RevisionFilesComponent {
523
530
) ;
524
531
}
525
532
return Ok ( EventState :: Consumed ) ;
533
+ } else if key_match (
534
+ key,
535
+ self . key_config . keys . select_branch ,
536
+ ) {
537
+ self . queue . push ( InternalEvent :: SelectBranch ) ;
538
+ return Ok ( EventState :: Consumed ) ;
526
539
} else if !is_tree_focused {
527
540
return self . current_file . event ( event) ;
528
541
}
Original file line number Diff line number Diff line change @@ -199,6 +199,13 @@ impl Component for Stashing {
199
199
self . visible ,
200
200
self . visible || force_all,
201
201
) ) ;
202
+ out. push ( CommandInfo :: new (
203
+ strings:: commands:: open_branch_select_popup (
204
+ & self . key_config ,
205
+ ) ,
206
+ true ,
207
+ true ,
208
+ ) ) ;
202
209
}
203
210
204
211
visibility_blocking ( self )
@@ -242,6 +249,12 @@ impl Component for Stashing {
242
249
!self . options . stash_untracked ;
243
250
self . update ( ) ?;
244
251
Ok ( EventState :: Consumed )
252
+ } else if key_match (
253
+ k,
254
+ self . key_config . keys . select_branch ,
255
+ ) {
256
+ self . queue . push ( InternalEvent :: SelectBranch ) ;
257
+ return Ok ( EventState :: Consumed ) ;
245
258
} else {
246
259
Ok ( EventState :: NotConsumed )
247
260
} ;
Original file line number Diff line number Diff line change @@ -182,6 +182,13 @@ impl Component for StashList {
182
182
selection_valid,
183
183
true ,
184
184
) ) ;
185
+ out. push ( CommandInfo :: new (
186
+ strings:: commands:: open_branch_select_popup (
187
+ & self . key_config ,
188
+ ) ,
189
+ true ,
190
+ true ,
191
+ ) ) ;
185
192
}
186
193
187
194
visibility_blocking ( self )
@@ -214,6 +221,12 @@ impl Component for StashList {
214
221
self . key_config . keys . stash_open ,
215
222
) {
216
223
self . inspect ( ) ;
224
+ } else if key_match (
225
+ k,
226
+ self . key_config . keys . select_branch ,
227
+ ) {
228
+ self . queue . push ( InternalEvent :: SelectBranch ) ;
229
+ return Ok ( EventState :: Consumed ) ;
217
230
}
218
231
}
219
232
}
You can’t perform that action at this time.
0 commit comments