mirror of
https://github.com/laurent22/joplin.git
synced 2025-05-13 21:46:37 +02:00
Desktop: Add option to disable auto-matching braces (#2251)
* Add option to disable auto-matching braces * Only Make option desktop only
This commit is contained in:
parent
4a2d9bb028
commit
e674d7d23b
@ -2111,6 +2111,8 @@ class NoteTextComponent extends React.Component {
|
|||||||
onSelectionChange={this.aceEditor_selectionChange}
|
onSelectionChange={this.aceEditor_selectionChange}
|
||||||
onFocus={this.aceEditor_focus}
|
onFocus={this.aceEditor_focus}
|
||||||
readOnly={visiblePanes.indexOf('editor') < 0}
|
readOnly={visiblePanes.indexOf('editor') < 0}
|
||||||
|
// Enable/Disable the autoclosing braces
|
||||||
|
setOptions={{ behavioursEnabled: Setting.value('editor.autoMatchingBraces') }}
|
||||||
// Disable warning: "Automatically scrolling cursor into view after
|
// Disable warning: "Automatically scrolling cursor into view after
|
||||||
// selection change this will be disabled in the next version set
|
// selection change this will be disabled in the next version set
|
||||||
// editor.$blockScrolling = Infinity to disable this message"
|
// editor.$blockScrolling = Infinity to disable this message"
|
||||||
|
@ -284,6 +284,14 @@ class Setting extends BaseModel {
|
|||||||
return options;
|
return options;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'editor.autoMatchingBraces': {
|
||||||
|
value: true,
|
||||||
|
type: Setting.TYPE_BOOL,
|
||||||
|
public: true,
|
||||||
|
section: 'note',
|
||||||
|
appTypes: ['desktop'],
|
||||||
|
label: () => _('Auto-pair braces, parenthesis, quotations, etc.'),
|
||||||
|
},
|
||||||
'notes.sortOrder.reverse': { value: true, type: Setting.TYPE_BOOL, section: 'note', public: true, label: () => _('Reverse sort order'), appTypes: ['cli'] },
|
'notes.sortOrder.reverse': { value: true, type: Setting.TYPE_BOOL, section: 'note', public: true, label: () => _('Reverse sort order'), appTypes: ['cli'] },
|
||||||
'folders.sortOrder.field': {
|
'folders.sortOrder.field': {
|
||||||
value: 'title',
|
value: 'title',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user