File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -832,6 +832,15 @@ impl App {
832
832
}
833
833
}
834
834
835
+ res. push ( CommandInfo :: new (
836
+ strings:: commands:: find_file ( & self . key_config ) ,
837
+ !self . find_file_popup . is_visible ( ) ,
838
+ ( !self . any_popup_visible ( )
839
+ && self . files_tab . is_visible ( ) )
840
+ || self . revision_files_popup . is_visible ( )
841
+ || force_all,
842
+ ) ) ;
843
+
835
844
res. push (
836
845
CommandInfo :: new (
837
846
strings:: commands:: toggle_tabs ( & self . key_config ) ,
Original file line number Diff line number Diff line change @@ -367,6 +367,16 @@ pub mod commands {
367
367
CMD_GROUP_GENERAL ,
368
368
)
369
369
}
370
+ pub fn find_file ( key_config : & SharedKeyConfig ) -> CommandText {
371
+ CommandText :: new (
372
+ format ! (
373
+ "Find [{}]" ,
374
+ key_config. get_hint( key_config. file_find)
375
+ ) ,
376
+ "find file in tree" ,
377
+ CMD_GROUP_GENERAL ,
378
+ )
379
+ }
370
380
pub fn toggle_tabs_direct (
371
381
key_config : & SharedKeyConfig ,
372
382
) -> CommandText {
You can’t perform that action at this time.
0 commit comments