removed useless split camelcase option

This commit is contained in:
Simon Cambier 2025-06-21 13:47:04 +02:00
parent b460f1bee5
commit 833d89dea8
3 changed files with 1 additions and 19 deletions

View File

@ -95,7 +95,6 @@ export function getDefaultSettings(app: App): LocatorSettings {
officeIndexing: false,
imagesIndexing: false,
unsupportedFilesIndexing: 'default',
splitCamelCase: false,
openInNewPane: false,
vimLikeNavigationShortcut: app.vault.getConfig('vimMode') as boolean,

View File

@ -70,22 +70,6 @@ export function injectSettingsBehavior(
})
})
// Split CamelCaseWords
new Setting(containerEl)
.setName('Split CamelCaseWords')
.setDesc(
htmlDescription(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>
<span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
${needsARestart}`)
)
.addToggle(toggle =>
toggle.setValue(settings.splitCamelCase).onChange(async v => {
await database.clearCache()
settings.splitCamelCase = v
await saveSettings(plugin)
})
)
// Simpler search
new Setting(containerEl)
.setName('Simpler search')

View File

@ -68,7 +68,6 @@ export interface LocatorSettings extends WeightingSettings {
welcomeMessage: string
/** If a query returns 0 result, try again with more relax conditions */
simpleSearch: boolean
splitCamelCase: boolean
openInNewPane: boolean
verboseLogging: boolean
vimLikeNavigationShortcut: boolean