diff --git a/README.md b/README.md index d35d701..148d070 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ Contact Note

+ +![GitHub release](https://img.shields.io/github/v/release/Jalad25/contact-note) ![Assests downloaded](https://img.shields.io/github/downloads/Jalad25/contact-note/total) + # 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. ![preview](assets/screenshots/Preview.gif) 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); }