mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 10:50:28 +08:00
parent
44e15a34b7
commit
a853752129
@ -646,6 +646,23 @@ const commands = [
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
id: 'view.text-direction',
|
||||
description: 'View: Set Text Direction',
|
||||
subcommands: [{
|
||||
id: 'view.text-direction-ltr',
|
||||
description: 'Left to Right',
|
||||
value: 'ltr'
|
||||
}, {
|
||||
id: 'view.text-direction-rtl',
|
||||
description: 'Right to Left',
|
||||
value: 'rtl'
|
||||
}],
|
||||
executeSubcommand: async (_, value) => {
|
||||
ipcRenderer.send('mt::set-user-preference', { textDirection: value })
|
||||
}
|
||||
},
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Mark Text
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user