23 Commits

Author SHA1 Message Date
olivier 526f54a640 1.1.0: fix Live Preview crash, add Reading View inline support, birthday labels
- Fix RangeSetBuilder ordering crash: inline and fenced-block decorations
  are now merged and sorted before being added, instead of two unsorted
  passes (crashed whenever a fenced block preceded inline code in a note).
- Add explicit @codemirror/state and @codemirror/view devDependencies
  (previously only transitive via @codemirror/language).
- Add Reading View support for inline `date-calc:` spans via
  registerMarkdownPostProcessor (previously Live Preview only), mirroring
  the approach used by Dataview's inline queries.
- Fix verbose=false being silently truthy (non-empty string) in inline
  key=value config, which meant it never actually disabled verbose output.
- Fix diff type auto-inference: from/to was dead code (countdown's check
  always matched first); reordered so from+to or start+end infer diff.
- Implement documented but missing birthday label support: cfg.label,
  falling back to frontmatter name ("Jane's age:"), then "Age:".
- Split main.ts (777 lines) into src/ modules per AGENTS.md conventions.
- Fix duplicated command-palette prefixes, move inline JS styles to
  styles.css, fix package.json author, drop orphaned showArrow setting.

Verified: unit tests against the real bundled logic (mocked obsidian
module), a reproduction of the RangeSetBuilder crash against the real
@codemirror/state package, and live end-to-end testing in Obsidian via
CDP/Playwright (Tchernobyl vault).
2026-09-07 11:45:45 -04:00
olivier 978181b27d petits changements 2026-02-24 21:55:09 -05:00
olivier 3524862184 show minutes 2026-01-04 21:36:47 -05:00
olivier 32daa33af6 fix codeblock 2026-01-04 21:10:35 -05:00
olivier 83846e7602 make it work well 2026-01-04 20:42:36 -05:00
olivier e5552e2d4c chore: update dependencies and clean up styles
- Added @codemirror/language and @lezer/common as devDependencies in package.json and package-lock.json.
- Removed inline date-calc styling and specific CodeMirror styles from styles.css for a cleaner design.
2026-01-04 19:59:31 -05:00
olivier e6e791ad35 feat: Enhance inline date calculation with improved Live Preview support, type normalization, and plugin cleanup. 2025-12-02 22:02:36 -05:00
olivier 9021a11172 WIP. inline doesn't work, but the rest does. 2025-09-19 20:54:43 -04:00
olivier ee7be363cc WIP. inline doesn't work, but the rest does. 2025-09-19 20:52:30 -04:00
Adam Millerchip f16c1401b3 Prefix unused variables with _ 2025-08-28 14:38:40 +09:00
Johannes Theiner e8f03522bc Adapt to plugin guidelines (#65)
- remove header in settings
- remove logging of changed settings value
2023-07-17 12:36:25 -04:00
Xiao Meng f690c04577 use LF instead of CRLF (#28) 2022-04-15 14:13:31 -04:00
lishid db18a36e65 Update build script to include external node packages. 2021-11-01 15:18:11 -04:00
TfTHacker 6fdd374cb8 Adding eslint for code .\src\ (#17) 2021-10-30 14:04:07 -04:00
lishid 3afc9d78ab Update sample plugin to use ESBuild. 2021-10-19 13:34:58 -04:00
fyears 5f95bce9e1 preserve and load settings correctly 2021-10-10 11:11:02 -04:00
lishid ae30a5a418 Update best practice for settings. 2021-01-24 15:41:47 -05:00
lishid cfe4d17ce7 Add example for settings. 2020-12-22 11:24:00 -05:00
lishid 9162f82010 Removed init. 2020-10-29 21:41:47 -04:00
lishid 6e8aab9616 Add more examples for hooks. 2020-10-29 18:02:57 -04:00
lishid 99f4035214 Add example for modifying CodeMirror. 2020-10-29 17:36:03 -04:00
lishid 2889865881 Refactor: Use new version of obsidian.d.ts from remote. 2020-10-26 11:07:18 -04:00
lishid ed3770792a Initial commit! 2020-10-25 16:58:31 -04:00