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,
 | 
					    officeIndexing: false,
 | 
				
			||||||
    imagesIndexing: false,
 | 
					    imagesIndexing: false,
 | 
				
			||||||
    unsupportedFilesIndexing: 'default',
 | 
					    unsupportedFilesIndexing: 'default',
 | 
				
			||||||
    splitCamelCase: false,
 | 
					 | 
				
			||||||
    openInNewPane: false,
 | 
					    openInNewPane: false,
 | 
				
			||||||
    vimLikeNavigationShortcut: app.vault.getConfig('vimMode') as boolean,
 | 
					    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
 | 
					  // Simpler search
 | 
				
			||||||
  new Setting(containerEl)
 | 
					  new Setting(containerEl)
 | 
				
			||||||
    .setName('Simpler search')
 | 
					    .setName('Simpler search')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,7 +49,7 @@ export interface LocatorSettings extends WeightingSettings {
 | 
				
			||||||
  imagesIndexing: boolean
 | 
					  imagesIndexing: boolean
 | 
				
			||||||
  /** Enable Office documents indexing */
 | 
					  /** Enable Office documents indexing */
 | 
				
			||||||
  officeIndexing: boolean
 | 
					  officeIndexing: boolean
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
  /** Enable indexing of unknown files */
 | 
					  /** Enable indexing of unknown files */
 | 
				
			||||||
  unsupportedFilesIndexing: 'yes' | 'no' | 'default'
 | 
					  unsupportedFilesIndexing: 'yes' | 'no' | 'default'
 | 
				
			||||||
  /** Activate the small 🔍 button on Obsidian's ribbon */
 | 
					  /** Activate the small 🔍 button on Obsidian's ribbon */
 | 
				
			||||||
| 
						 | 
					@ -68,7 +68,6 @@ export interface LocatorSettings extends WeightingSettings {
 | 
				
			||||||
  welcomeMessage: string
 | 
					  welcomeMessage: string
 | 
				
			||||||
  /** If a query returns 0 result, try again with more relax conditions */
 | 
					  /** If a query returns 0 result, try again with more relax conditions */
 | 
				
			||||||
  simpleSearch: boolean
 | 
					  simpleSearch: boolean
 | 
				
			||||||
  splitCamelCase: boolean
 | 
					 | 
				
			||||||
  openInNewPane: boolean
 | 
					  openInNewPane: boolean
 | 
				
			||||||
  verboseLogging: boolean
 | 
					  verboseLogging: boolean
 | 
				
			||||||
  vimLikeNavigationShortcut: boolean
 | 
					  vimLikeNavigationShortcut: boolean
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user