File tree Expand file tree Collapse file tree 4 files changed +121
-5
lines changed Expand file tree Collapse file tree 4 files changed +121
-5
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ impl App {
289289
290290 ///
291291 pub fn event ( & mut self , ev : InputEvent ) -> Result < ( ) > {
292+ //println!("event: {:?}", ev);
292293 log:: trace!( "event: {:?}" , ev) ;
293294
294295 if let InputEvent :: Input ( ev) = ev {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl Default for KeysList {
148148 quit : GituiKeyEvent :: new ( KeyCode :: Char ( 'q' ) , KeyModifiers :: empty ( ) ) ,
149149 exit_popup : GituiKeyEvent :: new ( KeyCode :: Esc , KeyModifiers :: empty ( ) ) ,
150150 open_commit : GituiKeyEvent :: new ( KeyCode :: Char ( 'c' ) , KeyModifiers :: empty ( ) ) ,
151- open_conventional_commit : GituiKeyEvent :: new ( KeyCode :: Char ( 'C' ) , KeyModifiers :: empty ( ) ) ,
151+ open_conventional_commit : GituiKeyEvent :: new ( KeyCode :: Char ( 'C' ) , KeyModifiers :: SHIFT ) ,
152152 open_commit_editor : GituiKeyEvent :: new ( KeyCode :: Char ( 'e' ) , KeyModifiers :: CONTROL ) ,
153153 open_help : GituiKeyEvent :: new ( KeyCode :: Char ( 'h' ) , KeyModifiers :: empty ( ) ) ,
154154 open_options : GituiKeyEvent :: new ( KeyCode :: Char ( 'o' ) , KeyModifiers :: empty ( ) ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,122 @@ use crate::{
2727} ;
2828
2929#[ derive( EnumIter , Display , Clone ) ]
30- enum CommitType { }
30+ enum CommitType {
31+ Refactor ,
32+ #[ strum( to_string = "feat" ) ]
33+ Feature ,
34+ Fix ,
35+ Docs ,
36+ Style ,
37+ #[ strum( to_string = "perf" ) ]
38+ Performance ,
39+ Test ,
40+ Build ,
41+ CI ,
42+ Chore ,
43+ Revert ,
44+ Initial ,
45+ Bump ,
46+ Wip ,
47+ Debug ,
48+ }
49+
50+ enum MoreInfoCommit {
51+ // 🎨
52+ Structure ,
53+ // ⚡️
54+ Performance ,
55+ // 🐛
56+ Bug ,
57+ // 🚑️
58+ CriticalBug ,
59+ // ✨
60+ Feature ,
61+ // 📝
62+ Documentation ,
63+ // 💄:lipstick:
64+ UI ,
65+ // 🎉
66+ Initial ,
67+ // ✅:white_check_mark:
68+ TestsPassing ,
69+ // ➕Add
70+ Add ,
71+ // ➖Remove
72+ Remove ,
73+ // 🔒️
74+ Security ,
75+ // 🔖
76+ Release ,
77+ // ⚠️
78+ Warning ,
79+ // 🚧
80+ Wip ,
81+ // ⬇️
82+ Down ,
83+ // ⬆️
84+ Up ,
85+ // 👷
86+ CI ,
87+ // ♻️
88+ Refactor ,
89+ // 📈
90+ TrackCode ,
91+ // ✏️
92+ Typo ,
93+ // 🌐
94+ Internationalization ,
95+ // ⏪️
96+ Revert ,
97+ // 📦️
98+ Package ,
99+ // 👽️
100+ ExternalDependencyChange ,
101+ // 🚚
102+ RenameResources ,
103+ // ♿️:wheelchair:
104+ Accessibility ,
105+ // 📜
106+ Readme ,
107+ // ⚖️
108+ License ,
109+ // 💬
110+ TextLiteral ,
111+ // ⛃
112+ DatabaseRelated ,
113+ // 🔊
114+ AddLogs ,
115+ // 🔇
116+ RemoveLogs ,
117+ // 🚸
118+ ImproveExperience ,
119+ // 🏗️
120+ ArchitecturalChanges ,
121+ // 🤡
122+ WrittingReallyBadCode ,
123+ // 🙈
124+ GitIgnore ,
125+ // ⚗️
126+ Experimentations ,
127+ // 🚩
128+ Flag ,
129+ // 🗑️
130+ Trash ,
131+ // 🛂
132+ Authorization ,
133+ // 🩹
134+ QuickFix ,
135+ // ⚰️
136+ RemoveDeadCode ,
137+ // 👔
138+ Business ,
139+ // 🩺
140+ HealthCheck ,
141+ // 🧱
142+ Infra ,
143+ // 🦺
144+ Validation ,
145+ }
31146
32147pub struct ConventionalCommitPopup {
33148 key_config : SharedKeyConfig ,
@@ -288,8 +403,6 @@ impl Component for ConventionalCommitPopup {
288403 }
289404
290405 visibility_blocking ( self )
291-
292- // todo!()
293406 }
294407
295408 fn event (
Original file line number Diff line number Diff line change @@ -1093,7 +1093,9 @@ pub mod commands {
10931093 CommandText :: new (
10941094 format ! (
10951095 "Commit emoji [{}]" ,
1096- key_config. get_hint( key_config. keys. open_commit) ,
1096+ key_config. get_hint(
1097+ key_config. keys. open_conventional_commit
1098+ )
10971099 ) ,
10981100 "open commit emoji popups (available in non-empty stage)" ,
10991101 CMD_GROUP_GENERAL ,
You can’t perform that action at this time.
0 commit comments