mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Change menu position and accelerator for TOC gen.
Due to the fact, that submenu "Edit" is visible only in macOS, let's move TOC generator to "File" menu. Also, change accelerator to SHIFT+CTRL+T which is working without conflicts and problems on all platforms.
This commit is contained in:
@@ -145,6 +145,16 @@ const file = {
|
|||||||
{
|
{
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Generate/Update Markdown TOC',
|
||||||
|
accelerator: 'Shift+Ctrl+T',
|
||||||
|
click () {
|
||||||
|
mainWindow.webContents.send('code:generate-toc')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'separator'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Print',
|
label: 'Print',
|
||||||
accelerator: 'CommandOrControl+P',
|
accelerator: 'CommandOrControl+P',
|
||||||
@@ -228,16 +238,6 @@ const edit = {
|
|||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('editor:add-tag')
|
mainWindow.webContents.send('editor:add-tag')
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'separator'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Generate/Update Markdown TOC',
|
|
||||||
accelerator: 'CommandOrControl+Alt+T',
|
|
||||||
click () {
|
|
||||||
mainWindow.webContents.send('code:generate-toc')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user