@@ -85,14 +85,39 @@ 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 ? 'Command+Shift+Backspace' : 'Control+Shift+Backspace' ,
96
+ click ( ) {
97
+ mainWindow . webContents . send ( 'detail:delete' )
98
+ }
99
+ } ,
100
+ {
101
+ label : 'Clone Note' ,
102
+ accelerator : macOS ? 'Command+D' : 'Control+D' ,
103
+ click ( ) {
104
+ mainWindow . webContents . send ( 'list:clone' )
105
+ }
106
+ } ,
93
107
{
94
108
type : 'separator'
95
109
} ,
110
+ {
111
+ label : 'Import from' ,
112
+ submenu : [
113
+ {
114
+ label : 'Plain Text, MarkDown (.txt, .md)' ,
115
+ click ( ) {
116
+ mainWindow . webContents . send ( 'import:file' )
117
+ }
118
+ }
119
+ ]
120
+ } ,
96
121
{
97
122
label : 'Export as' ,
98
123
submenu : [
@@ -123,33 +148,16 @@ const file = {
123
148
type : 'separator'
124
149
} ,
125
150
{
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' ,
151
+ label : 'Generate/Update Markdown TOC' ,
152
+ accelerator : 'Shift+Ctrl+T' ,
141
153
click ( ) {
142
- mainWindow . webContents . send ( 'code:format-table ' )
154
+ mainWindow . webContents . send ( 'code:generate-toc ' )
143
155
}
144
156
} ,
145
157
{
146
- type : 'separator'
147
- } ,
148
- {
149
- label : 'Generate/Update Markdown TOC' ,
150
- accelerator : 'Shift+Ctrl+T' ,
158
+ label : 'Format Table' ,
151
159
click ( ) {
152
- mainWindow . webContents . send ( 'code:generate-toc ' )
160
+ mainWindow . webContents . send ( 'code:format-table ' )
153
161
}
154
162
} ,
155
163
{
@@ -162,16 +170,6 @@ const file = {
162
170
mainWindow . webContents . send ( 'list:isMarkdownNote' , 'print' )
163
171
mainWindow . webContents . send ( 'print' )
164
172
}
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
173
}
176
174
]
177
175
}
@@ -296,9 +294,6 @@ const view = {
296
294
mainWindow . setFullScreen ( ! mainWindow . isFullScreen ( ) )
297
295
}
298
296
} ,
299
- {
300
- type : 'separator'
301
- } ,
302
297
{
303
298
label : 'Toggle Side Bar' ,
304
299
accelerator : 'CommandOrControl+B' ,
0 commit comments