@@ -11,9 +11,9 @@ use crate::{
1111 popup_stack:: PopupStack ,
1212 popups:: {
1313 AppOption , BlameFilePopup , BranchListPopup , CommitPopup ,
14- CompareCommitsPopup , ConfirmPopup , CreateBranchPopup ,
15- CreateRemotePopup , ExternalEditorPopup , FetchPopup ,
16- FileRevlogPopup , FuzzyFindPopup , HelpPopup ,
14+ CompareCommitsPopup , ConfirmPopup , ConventionalCommitPopup ,
15+ CreateBranchPopup , CreateRemotePopup , ExternalEditorPopup ,
16+ FetchPopup , FileRevlogPopup , FuzzyFindPopup , HelpPopup ,
1717 InspectCommitPopup , LogSearchPopupPopup , MsgPopup ,
1818 OptionsPopup , PullPopup , PushPopup , PushTagsPopup ,
1919 RemoteListPopup , RenameBranchPopup , RenameRemotePopup ,
@@ -93,6 +93,7 @@ pub struct App {
9393 update_remote_url_popup : UpdateRemoteUrlPopup ,
9494 remotes_popup : RemoteListPopup ,
9595 rename_branch_popup : RenameBranchPopup ,
96+ conventional_commit_popup : ConventionalCommitPopup ,
9697 select_branch_popup : BranchListPopup ,
9798 options_popup : OptionsPopup ,
9899 submodule_popup : SubmodulesListPopup ,
@@ -200,6 +201,9 @@ impl App {
200201 update_remote_url_popup : UpdateRemoteUrlPopup :: new ( & env) ,
201202 remotes_popup : RemoteListPopup :: new ( & env) ,
202203 rename_branch_popup : RenameBranchPopup :: new ( & env) ,
204+ conventional_commit_popup : ConventionalCommitPopup :: new (
205+ & env,
206+ ) ,
203207 select_branch_popup : BranchListPopup :: new ( & env) ,
204208 tags_popup : TagListPopup :: new ( & env) ,
205209 options_popup : OptionsPopup :: new ( & env) ,
@@ -458,6 +462,7 @@ impl App {
458462 || self . fetch_popup . any_work_pending ( )
459463 || self . revision_files_popup . any_work_pending ( )
460464 || self . tags_popup . any_work_pending ( )
465+ || self . conventional_commit_popup . any_work_pending ( )
461466 }
462467
463468 ///
@@ -481,6 +486,7 @@ impl App {
481486 msg_popup,
482487 confirm_popup,
483488 commit_popup,
489+ conventional_commit_popup,
484490 blame_file_popup,
485491 file_revlog_popup,
486492 stashmsg_popup,
@@ -520,6 +526,7 @@ impl App {
520526 stashmsg_popup,
521527 help_popup,
522528 inspect_commit_popup,
529+ conventional_commit_popup,
523530 compare_commits_popup,
524531 blame_file_popup,
525532 file_revlog_popup,
@@ -738,6 +745,9 @@ impl App {
738745 }
739746 InternalEvent :: Update ( u) => flags. insert ( u) ,
740747 InternalEvent :: OpenCommit => self . commit_popup . show ( ) ?,
748+ InternalEvent :: OpenConventionalCommit => {
749+ self . conventional_commit_popup . show ( ) ?
750+ }
741751 InternalEvent :: RewordCommit ( id) => {
742752 self . commit_popup . open ( Some ( id) ) ?;
743753 }
0 commit comments