mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 22:42:40 +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
|
// Mark Text
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user