Skip to content

Commit

Permalink
0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian committed Aug 27, 2023
1 parent d8d0387 commit de346e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "excalibrain",
"name": "ExcaliBrain",
"version": "0.2.8",
"version": "0.2.9",
"minAppVersion": "1.1.6",
"description": "A clean, intuitive and editable graph view for Obsidian",
"author": "Zsolt Viczian",
Expand Down
5 changes: 3 additions & 2 deletions src/Suggesters/PageSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class PageSuggest extends TextInputSuggest<Page> {
(this.plugin.settings.showFolderNodes || !p.path.startsWith("folder:")) &&
(this.plugin.settings.showTagNodes || !p.path.startsWith("tag:"))
) && !exactMatches.contains(p) && query(p.path)
))
).sort((a,b)=>query(b.path).score - query(a.path).score))
}

renderSuggestion(page: Page, el: HTMLElement): void {
Expand Down Expand Up @@ -118,9 +118,10 @@ export class PageSuggest extends TextInputSuggest<Page> {
const highlightedFolderName = processSegment(folderName, inputStr);
inputStr = inputStr.split(" ").slice(lastInputStringSegment + 1).join(" ");
const highlightedFileName = processSegment(fileName, inputStr);
inputStr = inputStr.split(" ").slice(lastInputStringSegment + 1).join(" ");

return [highlightedFolderName, highlightedFileName];
}
}


selectSuggestion(page: Page): void {
Expand Down

0 comments on commit de346e6

Please sign in to comment.