mirror of
https://github.com/marktext/marktext.git
synced 2025-05-21 11:20:54 +08:00
Disable and hide unnecessary settings options (#2138)
This commit is contained in:
parent
954de817de
commit
6263d18eb3
@ -7,22 +7,26 @@
|
||||
"autoSaveDelay": {
|
||||
"description": "General--The time in ms after a change that the file is saved.",
|
||||
"type": "number",
|
||||
"minimum": 1000
|
||||
"minimum": 1000,
|
||||
"default": 5000
|
||||
},
|
||||
"titleBarStyle": {
|
||||
"description": "General--The title bar style (Windows and Linux system only).",
|
||||
"enum": [
|
||||
"custom",
|
||||
"native"
|
||||
]
|
||||
],
|
||||
"default": "custom"
|
||||
},
|
||||
"openFilesInNewWindow": {
|
||||
"description": "General--Open files in a new window.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"openFolderInNewWindow": {
|
||||
"description": "General--Open folder via menu in a new window.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"hideScrollbar": {
|
||||
"description": "General--Whether to hide scrollbars.",
|
||||
@ -44,7 +48,8 @@
|
||||
"modified",
|
||||
"created",
|
||||
"title"
|
||||
]
|
||||
],
|
||||
"default": "modified"
|
||||
},
|
||||
"startUpAction": {
|
||||
"description": "General--The action after Mark Text startup, open the last edited content, open the specified folder or blank page",
|
||||
@ -52,7 +57,8 @@
|
||||
"folder",
|
||||
"lastState",
|
||||
"blank"
|
||||
]
|
||||
],
|
||||
"default": "blank"
|
||||
},
|
||||
"defaultDirectoryToOpen": {
|
||||
"description": "General--The default directory that should be opened on startup when startUp=folder.",
|
||||
@ -60,12 +66,14 @@
|
||||
},
|
||||
"language": {
|
||||
"description": "General--The language Mark Text use.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"default": "en"
|
||||
},
|
||||
"editorFontFamily": {
|
||||
"description": "Editor--editor font family",
|
||||
"type": "string",
|
||||
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$"
|
||||
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$",
|
||||
"default": "Open Sans"
|
||||
},
|
||||
"fontSize": {
|
||||
"description": "Editor--Font size in pixels",
|
||||
@ -84,7 +92,8 @@
|
||||
"editorLineWidth": {
|
||||
"description": "Editor--Defines the maximum editor area width. An empty string or suffixes of ch (characters), px (pixels) or % (percentage) are allowed.",
|
||||
"type": "string",
|
||||
"pattern": "^(?:$|[0-9]+(?:ch|px|%)$)"
|
||||
"pattern": "^(?:$|[0-9]+(?:ch|px|%)$)",
|
||||
"default": ""
|
||||
},
|
||||
"codeFontSize": {
|
||||
"description": "Editor--Font size in code Block, the range is 12 ~ 18",
|
||||
@ -96,7 +105,8 @@
|
||||
"codeFontFamily": {
|
||||
"description": "Editor--Font family used in code block",
|
||||
"type": "string",
|
||||
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$"
|
||||
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$",
|
||||
"default": "DejaVu Sans Mono"
|
||||
},
|
||||
"codeBlockLineNumbers": {
|
||||
"description": "Editor--Whether to show the line numbers",
|
||||
@ -105,19 +115,23 @@
|
||||
},
|
||||
"trimUnnecessaryCodeBlockEmptyLines": {
|
||||
"description": "Editor--Trim the beginning and ending empty lines in code block",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"autoPairBracket": {
|
||||
"description": "Editor--Automatically brackets when editing",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"autoPairMarkdownSyntax": {
|
||||
"description": "Editor--Autocomplete markdown syntax",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"autoPairQuote": {
|
||||
"description": "Editor--Automatic completion of quotes",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"endOfLine": {
|
||||
"description": "Editor--The newline character used at the end of each line. The default value is default, which selects your operating system's default newline character.",
|
||||
@ -190,11 +204,13 @@
|
||||
"enum": [
|
||||
"ltr",
|
||||
"rtl"
|
||||
]
|
||||
],
|
||||
"default": "ltr"
|
||||
},
|
||||
"hideQuickInsertHint": {
|
||||
"description": "Editor--Hide hint for quickly creating paragraphs",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"hideLinkPopup": {
|
||||
"description": "Editor--Hide link popup when the cursor is hover on the link",
|
||||
@ -208,7 +224,8 @@
|
||||
},
|
||||
"preferLooseListItem": {
|
||||
"description": "Markdown--The preferred list type",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"bulletListMarker": {
|
||||
"description": "Markdown--The marker used in bullet list",
|
||||
@ -216,25 +233,29 @@
|
||||
"-",
|
||||
"*",
|
||||
"+"
|
||||
]
|
||||
],
|
||||
"default": "-"
|
||||
},
|
||||
"orderListDelimiter": {
|
||||
"description": "Markdown--The dilimiter used in order list",
|
||||
"enum": [
|
||||
".",
|
||||
")"
|
||||
]
|
||||
],
|
||||
"default": "."
|
||||
},
|
||||
"preferHeadingStyle": {
|
||||
"description": "Markdown--The preferred heading style in Mark Text",
|
||||
"enum": [
|
||||
"atx",
|
||||
"setext"
|
||||
]
|
||||
],
|
||||
"default": "atx"
|
||||
},
|
||||
"tabSize": {
|
||||
"description": "Markdown--Replace the tab with x spaces",
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"default": 4
|
||||
},
|
||||
"listIndentation": {
|
||||
"description": "Markdown--Select the indent of list",
|
||||
@ -245,7 +266,8 @@
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
],
|
||||
"default": 1
|
||||
},
|
||||
"frontmatterType": {
|
||||
"description": "Markdown--The frontmatter type",
|
||||
@ -254,7 +276,8 @@
|
||||
"+",
|
||||
";",
|
||||
"{"
|
||||
]
|
||||
],
|
||||
"default": "-"
|
||||
},
|
||||
"superSubScript": {
|
||||
"description": "Markdown-Enable pandoc's markdown extension superscript and subscript.",
|
||||
@ -271,11 +294,13 @@
|
||||
"enum": [
|
||||
"hand",
|
||||
"simple"
|
||||
]
|
||||
],
|
||||
"default": "hand"
|
||||
},
|
||||
"theme": {
|
||||
"description": "Theme--Select the theme used in Mark Text",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"default": "light"
|
||||
},
|
||||
"autoSwitchTheme": {
|
||||
"description": "Theme--Automatically adjust application theme according system.",
|
||||
@ -317,46 +342,56 @@
|
||||
"upload",
|
||||
"folder",
|
||||
"path"
|
||||
]
|
||||
],
|
||||
"default": "path"
|
||||
},
|
||||
"sideBarVisibility": {
|
||||
"description": "View--Whether the side bar is visible.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"tabBarVisibility": {
|
||||
"description": "View--Whether the tabs are shown.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"sourceCodeModeEnabled": {
|
||||
"description": "View--Whether the source-code mode is enabled by default.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"searchExclusions": {
|
||||
"description": "Searcher--List of glob patterns to exclude from search.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"searchMaxFileSize": {
|
||||
"description": "Searcher--The maximal file size (<maxFileSize><suffix>). Suffixes of K, M or G are allowed if not suffix is given the number is treated as bytes.",
|
||||
"type": "string",
|
||||
"pattern": "^(?:$|[0-9]+(?:K|M|G)?$)"
|
||||
"pattern": "^(?:$|[0-9]+(?:K|M|G)?$)",
|
||||
"default": ""
|
||||
},
|
||||
"searchIncludeHidden": {
|
||||
"description": "Searcher--Whether to search in hidden files and directories.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"searchNoIgnore": {
|
||||
"description": "Searcher--Whether to ignore ignore files like .gitignore.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"searchFollowSymlinks": {
|
||||
"description": "Searcher--Whether symlinks should be followed.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"watcherUsePolling": {
|
||||
"description": "Watcher--Whether to use polling. Polling may leads to high CPU utilization but is necessary to watch files over a network.",
|
||||
"type": "boolean"
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,10 @@
|
||||
<section class="startup-action-ctrl">
|
||||
<div>What Mark Text should do on startup.</div>
|
||||
<el-radio-group v-model="startUpAction">
|
||||
<!--
|
||||
Hide "lastState" for now (#2064).
|
||||
<el-radio class="ag-underdevelop" label="lastState">Open the last window state</el-radio>
|
||||
-->
|
||||
<el-radio label="folder">Open the default directory<span>: {{defaultDirectoryToOpen}}</span></el-radio>
|
||||
<el-button size="small" @click="selectDefaultDirectoryToOpen">Select Folder</el-button>
|
||||
<el-radio label="blank">Open a blank page</el-radio>
|
||||
|
@ -20,6 +20,7 @@
|
||||
:onChange="value => onSelectChange('spellcheckerNoUnderline', value)"
|
||||
></bool>
|
||||
<bool
|
||||
v-show="isOsx && !spellcheckerIsHunspell"
|
||||
description="Automatically identify the used language. This feature is currently unavailable when using Hunspell or if mistake underlining is disabled."
|
||||
:bool="spellcheckerAutoDetectLanguage"
|
||||
:disable="!spellcheckerEnabled"
|
||||
|
Loading…
Reference in New Issue
Block a user