Skip to content

Commit

Permalink
refactor: gigantic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Dec 12, 2024
1 parent 4f39cc5 commit 164754b
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 760 deletions.
12 changes: 2 additions & 10 deletions plugin/handlers/eventHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ export function registerEventHandlers(plugin: FileOrganizer) {
if (!file.path.includes(plugin.settings.pathToWatch)) return;
if (file instanceof TFile) {
new Notice("Inbox is looking at new file: " + file.basename);
if (plugin.settings.useInbox) {
Inbox.getInstance().enqueueFiles([file]);
} else {
plugin.processFileV2(file);
}
Inbox.getInstance().enqueueFiles([file]);
}
})
);
Expand All @@ -27,11 +23,7 @@ export function registerEventHandlers(plugin: FileOrganizer) {
if (!file.path.includes(plugin.settings.pathToWatch)) return;
if (file instanceof TFile) {
new Notice("Inbox is looking at new file: " + file.basename);
if (plugin.settings.useInbox) {
Inbox.getInstance().enqueueFiles([file]);
} else {
plugin.processFileV2(file, oldPath);
}
Inbox.getInstance().enqueueFiles([file]);
}
})
);
Expand Down
Loading

0 comments on commit 164754b

Please sign in to comment.