From 342e44869392ba057d2650fa61d136102d756fa7 Mon Sep 17 00:00:00 2001
From: Jalad
Date: Sun, 3 May 2026 18:38:47 -0500
Subject: [PATCH] Added badges to readme. Removed console.log
---
README.md | 4 ++++
src/main.ts | 12 +++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index d35d701..148d070 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,11 @@
+
+ 
+
# Contact Note
+
An [Obsidian](https://obsidian.md/) plugin that renders visual contact cards from frontmatter in designated contact notes, with a searchable and filterable contact list view.

diff --git a/src/main.ts b/src/main.ts
index 53655fa..68c4bcf 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -11,7 +11,7 @@ import { ContactNoteSettingTab } from "./ContactNoteSettingTab";
import { Contact } from "./Contact";
import { buildContactCard } from "./ContactCard";
-export const VIEW_TYPE_CONTACT_LIST = "contact-note-list";
+//#region Types
export interface FrontmatterFilter {
property: string;
@@ -29,6 +29,12 @@ export interface ContactNoteSettings {
defaultFilters: FrontmatterFilter[];
}
+//#endregion
+
+//#region Constants/Defaults
+
+export const VIEW_TYPE_CONTACT_LIST = "contact-note-list";
+
export const DEFAULT_SETTINGS: ContactNoteSettings = {
useFolder: true,
folderPath: "Contacts",
@@ -39,6 +45,8 @@ export const DEFAULT_SETTINGS: ContactNoteSettings = {
defaultFilters: [],
};
+//#endregion
+
export default class ContactNotePlugin extends Plugin {
settings!: ContactNoteSettings;
private renamingFiles = new Set();
@@ -208,7 +216,6 @@ export default class ContactNotePlugin extends Plugin {
if (this.settings.useFolder) {
const folder = normalizePath(this.settings.folderPath);
if (!folder) return false;
- console.log(file.path === folder || file.path.startsWith(folder + "/"));
return file.path === folder || file.path.startsWith(folder + "/");
}
@@ -232,7 +239,6 @@ export default class ContactNotePlugin extends Plugin {
tags.push(...cache.tags.map((t) => t.tag.replace(/^#/, "").toLowerCase()));
}
- console.log(tags.includes(tag));
return tags.includes(tag);
}