Disable url tokenization on iOS
This commit is contained in:
@@ -325,18 +325,21 @@ export class SettingsTab extends PluginSettingTab {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Extract URLs
|
// Extract URLs
|
||||||
new Setting(containerEl)
|
// Crashes on iOS
|
||||||
.setName('Tokenize URLs')
|
if (!Platform.isIosApp) {
|
||||||
.setDesc(
|
new Setting(containerEl)
|
||||||
`Enable this if you want to be able to search for URLs as separate words.
|
.setName('Tokenize URLs')
|
||||||
|
.setDesc(
|
||||||
|
`Enable this if you want to be able to search for URLs as separate words.
|
||||||
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`
|
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`
|
||||||
)
|
)
|
||||||
.addToggle(toggle =>
|
.addToggle(toggle =>
|
||||||
toggle.setValue(settings.tokenizeUrls).onChange(async v => {
|
toggle.setValue(settings.tokenizeUrls).onChange(async v => {
|
||||||
settings.tokenizeUrls = v
|
settings.tokenizeUrls = v
|
||||||
await saveSettings(this.plugin)
|
await saveSettings(this.plugin)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// Open in new pane
|
// Open in new pane
|
||||||
new Setting(containerEl)
|
new Setting(containerEl)
|
||||||
@@ -717,7 +720,7 @@ export const DEFAULT_SETTINGS: OmnisearchSettings = {
|
|||||||
PDFIndexing: false,
|
PDFIndexing: false,
|
||||||
officeIndexing: false,
|
officeIndexing: false,
|
||||||
imagesIndexing: false,
|
imagesIndexing: false,
|
||||||
unsupportedFilesIndexing: 'no',
|
unsupportedFilesIndexing: 'default',
|
||||||
splitCamelCase: false,
|
splitCamelCase: false,
|
||||||
openInNewPane: false,
|
openInNewPane: false,
|
||||||
vimLikeNavigationShortcut: app.vault.getConfig('vimMode') as boolean,
|
vimLikeNavigationShortcut: app.vault.getConfig('vimMode') as boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user