File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ if (isDevelopment) {
77
77
} ) ,
78
78
commit : debounce ( async function ( ) {
79
79
hidePopup ( ) ;
80
- commit ( true , `[logseq-plugin-git:commit] ${ new Date ( ) . toISOString ( ) } ` ) ;
80
+ await commit ( true , `[logseq-plugin-git:commit] ${ new Date ( ) . toISOString ( ) } ` ) ;
81
+ checkStatus ( ) ;
81
82
} ) ,
82
83
push : debounce ( async function ( ) {
83
84
setPluginStyle ( LOADING_STYLE ) ;
@@ -192,6 +193,17 @@ if (isDevelopment) {
192
193
} ) ;
193
194
}
194
195
196
+ logseq . App . registerCommandPalette (
197
+ {
198
+ key : "logseq-plugin-git:commit" ,
199
+ label : "Commit" ,
200
+ keybinding : {
201
+ binding : "alt+shift+s" ,
202
+ mode : "global" ,
203
+ } ,
204
+ } ,
205
+ ( ) => operations . commit ( )
206
+ ) ;
195
207
logseq . App . registerCommandPalette (
196
208
{
197
209
key : "logseq-plugin-git:commit&push" ,
You can’t perform that action at this time.
0 commit comments