@@ -85,14 +85,40 @@ const file = {
85
85
} ,
86
86
{
87
87
label : 'Focus Note' ,
88
- accelerator : 'Control+E' ,
88
+ accelerator : macOS ? 'Command+E' : 'Control+E' ,
89
89
click ( ) {
90
90
mainWindow . webContents . send ( 'detail:focus' )
91
91
}
92
92
} ,
93
+ {
94
+ label : 'Delete Note' ,
95
+ accelerator : macOS ? '' : 'Delete' ,
96
+ accelerator : macOS ? 'Command+Backspace' : 'Control+Backspace' ,
97
+ click ( ) {
98
+ mainWindow . webContents . send ( 'detail:delete' )
99
+ }
100
+ } ,
101
+ {
102
+ label : 'Clone Note' ,
103
+ accelerator : macOS ? 'Command+D' : 'Control+D' ,
104
+ click ( ) {
105
+ mainWindow . webContents . send ( 'list:clone' )
106
+ }
107
+ } ,
93
108
{
94
109
type : 'separator'
95
110
} ,
111
+ {
112
+ label : 'Import from' ,
113
+ submenu : [
114
+ {
115
+ label : 'Plain Text, MarkDown (.txt, .md)' ,
116
+ click ( ) {
117
+ mainWindow . webContents . send ( 'import:file' )
118
+ }
119
+ }
120
+ ]
121
+ } ,
96
122
{
97
123
label : 'Export as' ,
98
124
submenu : [
@@ -123,33 +149,16 @@ const file = {
123
149
type : 'separator'
124
150
} ,
125
151
{
126
- label : 'Import from' ,
127
- submenu : [
128
- {
129
- label : 'Plain Text, MarkDown (.txt, .md)' ,
130
- click ( ) {
131
- mainWindow . webContents . send ( 'import:file' )
132
- }
133
- }
134
- ]
135
- } ,
136
- {
137
- type : 'separator'
138
- } ,
139
- {
140
- label : 'Format Table' ,
152
+ label : 'Generate/Update Markdown TOC' ,
153
+ accelerator : 'Shift+Ctrl+T' ,
141
154
click ( ) {
142
- mainWindow . webContents . send ( 'code:format-table ' )
155
+ mainWindow . webContents . send ( 'code:generate-toc ' )
143
156
}
144
157
} ,
145
158
{
146
- type : 'separator'
147
- } ,
148
- {
149
- label : 'Generate/Update Markdown TOC' ,
150
- accelerator : 'Shift+Ctrl+T' ,
159
+ label : 'Format Table' ,
151
160
click ( ) {
152
- mainWindow . webContents . send ( 'code:generate-toc ' )
161
+ mainWindow . webContents . send ( 'code:format-table ' )
153
162
}
154
163
} ,
155
164
{
@@ -162,16 +171,6 @@ const file = {
162
171
mainWindow . webContents . send ( 'list:isMarkdownNote' )
163
172
mainWindow . webContents . send ( 'print' )
164
173
}
165
- } ,
166
- {
167
- type : 'separator'
168
- } ,
169
- {
170
- label : 'Delete Note' ,
171
- accelerator : macOS ? 'Control+Backspace' : 'Control+Delete' ,
172
- click ( ) {
173
- mainWindow . webContents . send ( 'detail:delete' )
174
- }
175
174
}
176
175
]
177
176
}
@@ -296,9 +295,6 @@ const view = {
296
295
mainWindow . setFullScreen ( ! mainWindow . isFullScreen ( ) )
297
296
}
298
297
} ,
299
- {
300
- type : 'separator'
301
- } ,
302
298
{
303
299
label : 'Toggle Side Bar' ,
304
300
accelerator : 'CommandOrControl+B' ,
0 commit comments