Don't show .md extensions
This commit is contained in:
parent
d59203b5b9
commit
b72b3488d8
1 changed files with 4 additions and 2 deletions
|
|
@ -61,7 +61,9 @@ export class HistoryView extends ItemView {
|
|||
setIcon(element.createDiv(), syncTypeIcon);
|
||||
}
|
||||
|
||||
const fileName = entry.details.relativePath.split("/").pop();
|
||||
let fileName = entry.details.relativePath.split("/").pop() ?? "";
|
||||
fileName = fileName.replace(/\.md$/, "");
|
||||
|
||||
element.createEl("span", {
|
||||
text:
|
||||
entry.details.type === SyncType.SKIPPED
|
||||
|
|
@ -168,7 +170,7 @@ export class HistoryView extends ItemView {
|
|||
},
|
||||
(card) => {
|
||||
if (
|
||||
this.app.vault.getFileByPath(entry.details.relativePath) !==
|
||||
this.app.vault.getFileByPath(entry.details.relativePath) !=
|
||||
null
|
||||
) {
|
||||
card.addEventListener("click", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue