Skip to content

Commit

Permalink
fix: file list by tag ignore current file
Browse files Browse the repository at this point in the history
  • Loading branch information
linyibing committed Mar 5, 2024
1 parent 958b1c0 commit fcfa050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/periodic/File.ts
Expand Up @@ -168,7 +168,8 @@ export class File {
!b.file.name?.match(WEEKLY_REG) &&
!b.file.name?.match(DAILY_REG) &&
!b.file.name?.match(/Template$/) &&
!b.file.path?.includes(`${periodicNotesPath}/Templates`)
!b.file.path?.includes(`${periodicNotesPath}/Templates`) &&
b.file.path !== filepath
)
.sort((b) => b.file.ctime, 'desc')
.map((b) => [
Expand Down

0 comments on commit fcfa050

Please sign in to comment.