fix: use file path instead of filename for finding templates
This commit is contained in:
parent
841fbec1a3
commit
06946c73da
2 changed files with 17 additions and 11 deletions
|
|
@ -17,11 +17,11 @@ export class FileSuggest extends TextInputSuggest<TFile> {
|
|||
}
|
||||
|
||||
renderSuggestion(file: TFile, el: HTMLElement): void {
|
||||
el.setText(file.name);
|
||||
el.setText(file.path);
|
||||
}
|
||||
|
||||
selectSuggestion(file: TFile): void {
|
||||
this.inputEl.value = file.name;
|
||||
this.inputEl.value = file.path;
|
||||
this.inputEl.trigger('input');
|
||||
this.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue