Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 0e51232

Browse files
authored
Version 4.0.0
1 parent e828fe8 commit 0e51232

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/utils/dntablemanager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class DNTableManager {
1919
}
2020
} else {
2121
for (let i = 0; i < cells.length; i++) {
22-
const colIndex = i % 6; // 6 columns of navigator
22+
const colIndex = i % 7; // 7 columns of navigator
2323
const columnName = this.getColumnNames()[colIndex];
2424
if (columnNames.includes(columnName)) {
2525
cells[i].classList.add('dn-hidden');
@@ -31,6 +31,6 @@ export class DNTableManager {
3131
}
3232

3333
getColumnNames(): string[] {
34-
return ['name', 'ext', 'path', 'size', 'date', 'tags'];
34+
return ['name', 'ext', 'path', 'size', 'date', 'tags', 'frontmatter'];
3535
}
3636
}

src/utils/tags.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,18 @@ export function getTagsPerFile(file: TFile): string {
3131
return '';
3232
}
3333

34-
}
34+
}
35+
36+
export function getPropsPerFile(file: TFile): string {
37+
const fileProperties: string[] = [];
38+
39+
const cache = this.app.metadataCache.getFileCache(file);
40+
41+
if (cache?.frontmatter) {
42+
for (const [key, value] of Object.entries(cache.frontmatter)) {
43+
fileProperties.push(`'${key}: ${value}'`);
44+
}
45+
}
46+
47+
return fileProperties.join(' \n');
48+
}

0 commit comments

Comments
 (0)