Fixed typo
This commit is contained in:
@@ -14,7 +14,7 @@ export const excerptBefore = 100
|
|||||||
export const excerptAfter = 300
|
export const excerptAfter = 300
|
||||||
|
|
||||||
export const highlightClass = `suggestion-highlight omnisearch-highlight ${
|
export const highlightClass = `suggestion-highlight omnisearch-highlight ${
|
||||||
settings.hightlight ? 'omnisearch-default-highlight' : ''
|
settings.highlight ? 'omnisearch-default-highlight' : ''
|
||||||
}`
|
}`
|
||||||
|
|
||||||
export const eventBus = new EventBus()
|
export const eventBus = new EventBus()
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export interface OmnisearchSettings 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
|
||||||
hightlight: boolean
|
highlight: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -301,8 +301,8 @@ export class SettingsTab extends PluginSettingTab {
|
|||||||
'Will highlight matching results when enabled. See README for more customization options.'
|
'Will highlight matching results when enabled. See README for more customization options.'
|
||||||
)
|
)
|
||||||
.addToggle(toggle =>
|
.addToggle(toggle =>
|
||||||
toggle.setValue(settings.hightlight).onChange(async v => {
|
toggle.setValue(settings.highlight).onChange(async v => {
|
||||||
settings.hightlight = v
|
settings.highlight = v
|
||||||
await saveSettings(this.plugin)
|
await saveSettings(this.plugin)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@@ -384,7 +384,7 @@ export const DEFAULT_SETTINGS: OmnisearchSettings = {
|
|||||||
showExcerpt: true,
|
showExcerpt: true,
|
||||||
renderLineReturnInExcerpts: true,
|
renderLineReturnInExcerpts: true,
|
||||||
showCreateButton: false,
|
showCreateButton: false,
|
||||||
hightlight: true,
|
highlight: true,
|
||||||
showPreviousQueryResults: true,
|
showPreviousQueryResults: true,
|
||||||
simpleSearch: false,
|
simpleSearch: false,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user