mirror of
https://github.com/poanse/obsidian-taskmap.git
synced 2026-07-22 06:05:58 +00:00
suggest only markdown files when linking a task
This commit is contained in:
parent
905c8177c4
commit
6dd4e6604d
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export class LinkSuggest extends AbstractInputSuggest<TFile> {
|
|||
const search = prepareFuzzySearch(linkQuery);
|
||||
|
||||
return this.app.vault
|
||||
.getFiles()
|
||||
.getMarkdownFiles()
|
||||
.filter((file) => search(file.path) || search(file.basename))
|
||||
.sort((a, b) => {
|
||||
const resA = search(a.path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue