Commit graph

15 commits

Author SHA1 Message Date
Victor Araújo
1b95a0a9b0 refactor(gutter): replace font size dropdown with 12-24px slider
Simpler and more flexible than mapping to Obsidian CSS variables.
Default is 15px.
2026-02-17 20:27:21 -03:00
Victor Araújo
a2501103c4 feat(gutter): add independent settings, font size dropdown, and 100% default opacity
Give the gutter its own HeadingDecoratorSettings following the same
pattern as other view types (toggle + config panel). Add a font size
dropdown mapped to Obsidian's --font-ui-* CSS variables. Default gutter
opacity is now 100% instead of the standard 20%.
2026-02-17 20:27:21 -03:00
Victor Araújo
7d21665b7f feat(editor): add gutter-based heading decorator renderer
Add an optional gutter column renderer as an alternative to inline
Decoration.widget placement. When enabled, heading decorations render
in a separate CodeMirror gutter outside the document flow, preserving
text alignment.

- Extract shared counter creation into common/counter-factory.ts
- Add HeadingGutterMarker (GutterMarker) and createHeadingGutterExtension
- Support toggling between inline and gutter modes at runtime via
  in-place extension swap (workspace.updateOptions pattern)
- Add useGutter toggle and gutterPosition dropdown to settings UI
- Add i18n strings for en, zh, zh-TW
- Add gutter CSS with opacity variants and table-cell hiding
2026-02-17 20:27:21 -03:00
dragonish
c0bd1e15aa
feat: add a new independent decorator mode
Resolve: #22
BREAKING CHANGE: adjust some settings, introduce a new decorator mode setting.
2026-01-09 13:04:07 +08:00
dragonish
9e98a8edea
typo(data): correct function name 2026-01-08 17:50:17 +08:00
dragonish
4e40be4f3d
fix(plugin): fix blocklist not working in edit view when metadata keyword is empty 2025-11-30 22:55:07 +08:00
dragonish
9cfeacb5e3
fix(plugin): fix blocklist not working in edit view
Fixed: #21
2025-11-30 22:45:28 +08:00
dragonish
dd8eb7b53d
feat(reading): allow custom render policy for reading view
Allow customization of the render policy for heading decorators in the
reading view when editing note content.

Refs: #20
2025-08-24 12:25:45 +08:00
dragonish
f51b4916d2
ui(reading): optimize the page scroll to another location when rerender
By recording the original position and rolling back after a period of time to
alleviate this issue.

Refs: #20
2025-08-23 17:30:20 +08:00
dragonish
c67fede46a
feat(settings): add generic heading decorator configuration
Resolve: #16
BREAKING CHANGE: adjust the logic of the settings.
2025-08-05 22:22:22 +08:00
dragonish
298a7f57f8
enh(i18n): add internationalization support 2025-06-15 16:50:44 +08:00
dragonish
d420ddd3e2
refactor(reading): extract the processing code of the reading view into a file 2025-05-29 12:53:32 +08:00
dragonish
55729c1e13
enh(plugin): make the decorator settings changes on the third-party plugin take effect immediately
When changing the relevant decorator settings, re-render the
decorator on the third-party plugin.
2025-05-29 00:00:00 +08:00
dragonish
412af669d0
refactor(editor): change class name 2025-05-28 21:02:52 +08:00
dragonish
619d950ae8
refactor(main): split the main file 2025-05-28 20:54:46 +08:00