removed useless split camelcase option
This commit is contained in:
		
							parent
							
								
									b460f1bee5
								
							
						
					
					
						commit
						833d89dea8
					
				| 
						 | 
				
			
			@ -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,
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user