mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Remove info hint to reindex khoj on unexpected search results
The index corruption was issue resolved a while ago in #325 and hasn't cropped up again
This commit is contained in:
@@ -127,15 +127,6 @@ export class KhojSearchModal extends SuggestModal<SearchResult> {
|
||||
let entry_snipped_indicator = result.entry.split('\n').length > lines_to_render ? ' **...**' : '';
|
||||
let snipped_entry = result.entry.split('\n').slice(0, lines_to_render).join('\n');
|
||||
|
||||
// Show reindex hint on first search result
|
||||
if (this.resultContainerEl.children.length == 1) {
|
||||
let infoHintEl = createEl("div",{ cls: 'khoj-info-hint' });
|
||||
el.insertAdjacentElement("beforebegin", infoHintEl);
|
||||
setTimeout(() => {
|
||||
infoHintEl.setText('Unexpected results? Try re-index your vault from the Khoj plugin settings to fix it.');
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
// Show filename of each search result for context
|
||||
el.createEl("div",{ cls: 'khoj-result-file' }).setText(filename ?? "");
|
||||
let result_el = el.createEl("div", { cls: 'khoj-result-entry' })
|
||||
|
||||
@@ -174,11 +174,3 @@ If your plugin does not need CSS, delete this file.
|
||||
.khoj-result-entry p br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.khoj-info-hint {
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-small);
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user