Commit graph

146 commits

Author SHA1 Message Date
Jules Omlor
6afe4a732a
feat: expose public plugin API (refs #227)
Adds a small public API surface on the plugin instance so external
plugins (specifically supercharged_links) can resolve a folder path
to its folder note without reaching into internals.

    app.plugins.plugins['folder-notes']?.api?.getEnabledFolderNote(path)
    // returns TFile | null

getEnabledFolderNote respects the same exclusion and detachment
semantics as the plugin's own UI: it returns null for folders that
wouldn't receive the .has-folder-note class. Consumers stay visually
consistent with folder-notes' own behavior.

The method name makes the gating explicit at the call site —
external plugin authors see "enabled" and know that exclusions/
detachment are honored without needing to read documentation.

Pattern mirrors the existing front-matter-title integration. No
new settings, no migrations, no behavior change for existing users.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 21:29:14 -04:00
Paul
1ace668c8f Fix #312 2026-03-22 20:44:06 +01:00
Paul
347c409619 Fix #284 2026-03-12 14:34:36 +01:00
Paul
8344490906 Hide duplicated folder note name in path 2026-03-10 15:49:50 +01:00
Lost Paul
4d30ea696e Fix #300 2026-01-02 12:55:40 +01:00
Lost Paul
3e23140bfb Fix # 275 2025-08-13 15:36:40 +02:00
Lost Paul
7c31c7cec5 Every remaining file 2025-08-11 14:39:33 +02:00
Lost Paul
8adf6186ac Fix linter issues for the events folder 2025-08-08 09:37:35 +02:00
Lost Paul
d98958c7bd Eslint code style fixes no. 1 2025-07-27 11:33:21 +02:00
Lost Paul
d58492f8a4 Merge branch 'main' of https://github.com/LostPaul/obsidian-folder-notes 2025-07-22 10:27:38 +02:00
Lost Paul
726476a42c Fix #268 2025-07-22 10:27:36 +02:00
Lost Paul
7f59b13788 Fix #267 2025-07-22 09:34:20 +02:00
Lost Paul
2dad83ee7f Remove notices 2025-07-21 09:15:06 +02:00
Lost Paul
ccc3b24da7 Update link list in the background 2025-07-19 09:39:59 +02:00
Lost Paul
e46191d137 Update link list in the background 2025-07-18 18:10:48 +02:00
Lost Paul
ce9fcb72c1 Fix #253 2025-07-07 11:40:16 +02:00
Lost Paul
f3f835844d Unnecessary click listener 2025-07-07 11:08:27 +02:00
Lost Paul
7d61dcf049 Fix click on folder note in folder overview 2025-07-06 13:18:12 +02:00
Lost Paul
ef0dbbd66b Fix #250 2025-06-30 16:01:49 +02:00
Lost Paul
b581b30abc Fix #247 2025-06-27 10:10:53 +02:00
Lost Paul
4d6820dc53 Fix choose folder note type modal 2025-06-26 20:26:25 +02:00
Lost Paul
d050217f5b Fix folder overview path & remove buggy enter event 2025-06-25 10:01:43 +02:00
Lost Paul
d1e2aa1c64 Fix rename handler & active folder highlight 2025-06-18 12:30:25 +02:00
Lost Paul
17251a4826 Fix #171 2025-06-17 12:47:54 +02:00
Lost Paul
415ccdd57f Clearer function names for style functions 2025-06-17 12:02:53 +02:00
Lost Paul
18e1f4dc45 Stop folder collapsing without touching css styles 2025-06-16 15:03:31 +02:00
Lost Paul
e7653658fc Fix #112 2025-06-12 18:43:27 +02:00
Lost Paul
8533e30ce5 Update main.ts 2025-06-04 15:18:50 +02:00
Lost Paul
1f04660242
Merge branch 'beta-3' into Improve-plugin-performance 2025-06-04 15:02:13 +02:00
Lost Paul
d6cf91b767 Fix changing folder names in the path 2025-06-04 14:54:11 +02:00
Lost Paul
84d8c608fd Remove unnecessary awaits 2025-06-01 13:11:36 +02:00
Lost Paul
25ae1596f4 Fix dropping folder into note 2025-06-01 12:21:46 +02:00
Lost Paul
94ce26c3e7 Fix show folder note in file explorer command 2025-05-30 20:47:50 +02:00
Lost Paul
fe64c66b60 Improve performance of mutation observer 2025-05-30 16:29:00 +02:00
Lost Paul
d7d6562cc4 Option to disable persisting tab 2025-05-01 15:26:05 +02:00
Lost Paul
8986c5b524 Fix code style issues part two 2025-03-01 14:45:52 +01:00
Lost Paul
8f131c83a8 Fix code style issues 2025-02-25 18:57:23 +01:00
Lost Paul
451de100be Fix folder note name feature and add conformation modal 2025-01-26 13:08:09 +01:00
Lost Paul
85bebc97e8 Remove redundant code 2025-01-25 12:16:22 +01:00
Lost Paul
54285cb8b7 Add styles & functions for the folder overview 2025-01-14 21:28:06 +01:00
Lost Paul
07ad2b927b Remove duplicated commands 2025-01-11 22:08:54 +01:00
Lost Paul
341dde9c74 Change folder overview paths 2025-01-08 12:43:29 +01:00
Lost Paul
62c4b5e149 Fix code style issues 2025-01-07 11:54:21 +01:00
Lost Paul
4c3e186d0b Made Folder Overview its own Plugin
Still needs quite a lot of changes in order to work flawless
2025-01-06 21:36:22 +01:00
Lost Paul
b65d624e3b Folder overview settings view 2025-01-03 13:39:51 +01:00
Lost Paul
69a1318442 Fix #182 2024-12-27 22:10:30 +01:00
Lost Paul
c1e7567a6e Save changes 2024-11-12 22:10:25 +01:00
Lost Paul
75443255b0 Fix style issue with new version 2024-10-03 17:34:38 +02:00
Lost Paul
e4f6419687 Save progress 2024-09-22 22:24:46 +02:00
Lost Paul
1c794c18ea Fix issues with 1.7.2 Obsidian release and some code rewrite 2024-09-21 21:49:34 +02:00