File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import '@logseq/libs' ;
22import 'logseq-dateutils'
33import { getDateForPageWithoutBrackets } from 'logseq-dateutils' ;
4- const main = async ( ) => {
54
5+ const settings = [ {
6+ key : 'keyboardShortcut' ,
7+ title : "Keyboard shortcut" ,
8+ description : 'Keyboard shortcut to trigger going home' ,
9+ type : 'string' ,
10+ default : 'mod+g' ,
11+ } ]
12+ const main = async ( ) => {
13+ logseq . useSettingsSchema ( settings ) ;
614 logseq . App . registerCommandPalette ( {
715 key : 'Go home now!' ,
816 label : 'Go to todays journal, append a new block and scroll to it' ,
9- keybinding : { binding : "mod+g" } ,
17+ keybinding : { binding : "mod+g" } ,
1018 } , async ( ) => {
1119 const dateFormat = ( await logseq . App . getUserConfigs ( ) ) . preferredDateFormat
1220 const date = getDateForPageWithoutBrackets ( new Date ( ) , dateFormat ) ;
@@ -17,4 +25,4 @@ const main = async () => {
1725
1826}
1927
20- logseq . ready ( main ) . catch ( console . error ) ;
28+ logseq . ready ( main ) . catch ( console . error ) ;
You can’t perform that action at this time.
0 commit comments