1
0
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:
Caleb John 2020-01-06 15:27:37 -07:00 committed by Laurent Cozic
parent 4a2d9bb028
commit e674d7d23b
2 changed files with 10 additions and 0 deletions

View File

@ -2111,6 +2111,8 @@ class NoteTextComponent extends React.Component {
onSelectionChange={this.aceEditor_selectionChange}
onFocus={this.aceEditor_focus}
readOnly={visiblePanes.indexOf('editor') < 0}
// Enable/Disable the autoclosing braces
setOptions={{ behavioursEnabled: Setting.value('editor.autoMatchingBraces') }}
// Disable warning: "Automatically scrolling cursor into view after
// selection change this will be disabled in the next version set
// editor.$blockScrolling = Infinity to disable this message"

View File

@ -284,6 +284,14 @@ class Setting extends BaseModel {
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'] },
'folders.sortOrder.field': {
value: 'title',