dragonish
d2f8a1d953
refactor(counter): format code according to ESLint rules
2026-02-19 21:04:27 +08:00
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
29c9403abc
tweak(setting): optimize the settings page
...
To adapt to the new style of Obsidian 1.11.
2026-01-14 20:38:28 +08:00
dragonish
138c7841c9
feat: add a new splice decorator mode
2026-01-09 19:27:54 +08:00
dragonish
2e5a5f067b
refactor(setting): optimize code
2026-01-09 18:40:38 +08:00
dragonish
f2268de8b1
refactor(counter): optimize variable names
2026-01-09 13:55:57 +08:00
dragonish
63c64a393f
feat(setting): show simple examples in decorator style type options
2026-01-09 13:30:09 +08: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
fd39b029aa
refactor(classname): adjust the reference method of the class name
2026-01-05 17:29:36 +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
99943ed615
feat: add support for custom leading delimiter
...
Resolve : #19
2025-08-16 10:25:31 +08:00
dragonish
7edebece29
feat: support to specify the maximum level of recognition
...
Resolve : #17
2025-08-10 21:55:41 +08:00
dragonish
4de7550ada
feat: support for custom trailing delimiter
...
Resolve : #18
2025-08-10 20:09:28 +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
f640b8e515
feat: support always ignore the top-level headings
2025-06-20 20:48:02 +08:00
dragonish
ac32053d44
fix(heading): fix ordered list mistakenly identified as heading
...
Refs: e2ea114bcd
2025-06-18 20:57:14 +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
619d950ae8
refactor(main): split the main file
2025-05-28 20:54:46 +08:00
dragonish
c7657ab7d1
fix(quiet-outline): fix residual decorators after change settings
...
For rendering reasons, the old class names will not be removed, so
they need to be handled by oneself.
2025-05-28 20:31:11 +08:00
dragonish
6fe4b0ff63
feat: add support for the "Quiet Outline" plugin
...
Refs: https://github.com/guopenghui/obsidian-quiet-outline
Resolve : #15
2025-05-27 22:44:28 +08:00
dragonish
0ef22caa40
fix(heading): extra fix unordered list mistakenly identified as level 2 heading
...
Previously, the situation where an unordered list using `+` was omitted.
Refs: e2ea114bcd
2025-05-17 22:35:42 +08:00
dragonish
5f1d91cfe0
fix(outline): fix exceptions when the heading contains some special symbols
...
Fixed : #14
2025-05-16 22:11:54 +08:00
dragonish
e2ea114bcd
fix(heading): fix unordered list mistakenly identified as level 2 heading
2025-05-16 21:55:53 +08:00
dragonish
cc7a05af32
feat(source): allow to hide number signs (#) in source mode
...
Resolve : #11
2025-04-27 21:36:17 +08:00
dragonish
c33a1e055d
enh(frontmatter): improve the parsing of cssclasses
...
Make the behavior of parsing `cssclases` consistent with the behavior
of parsing the property keywords.
2025-04-22 21:25:27 +08:00
dragonish
2d645c9cf9
feat: add support for the "Headings in Explorer" plugin
...
Refs: https://github.com/patrickchiang/obsidian-headings-in-explorer
Resolve : #10
2025-04-22 19:27:05 +08:00
dragonish
22d0c05605
enh(outline): remove the decorator immediately when detaching the function
...
To avoid the decorator remaining until the outline view is re-rendered
after disabling the option to decorate the outline plugin.
2025-04-22 13:55:57 +08:00
dragonish
e43dccaf00
merge(main): merge branch 'exp'
2025-04-19 20:29:56 +08:00
dragonish
a889e0bda3
feat: allow for easy customization of decorator styles
...
No longer use pseudo-element rendering decorators, but use entity
rendering instead.
2025-04-18 23:35:39 +08:00
dragonish
63395f12bf
refactor(dom): change variable name
...
Refs: 58e05c4bfb
2025-04-18 13:51:34 +08:00
dragonish
f5ee7f1bc3
revert: "perf(dom): reduce unnecessary conversions"
...
This reverts commit ef26e6eec9 .
2025-04-18 13:45:25 +08:00
dragonish
58e05c4bfb
fix(outline): fix exceptions when the heading contains links
...
Fixed : #9
2025-04-18 13:36:05 +08:00
dragonish
ef26e6eec9
perf(dom): reduce unnecessary conversions
2025-04-18 13:33:03 +08:00
dragonish
ec9dac6c8c
fix(outline): fix exceptions when the heading contains escape symbols
...
Including `\` in the heading may result in incorrect comparison.
2025-04-09 23:02:41 +08:00
dragonish
ee70a4349c
feat: add new decorator position options
...
Mainly used to resolve rendering conflicts with some themes.
Resolve : #8
2025-04-09 21:45:01 +08:00
dragonish
c013db2e56
feat: add support for blacklist function
...
Allow to specify the folder blacklist and the regex blacklist of note name.
Resolve : #7
2025-04-03 22:12:50 +08:00
dragonish
a1b31decd4
feat(settings): allow to setting a maximum number of ignored headings
2025-04-02 21:51:54 +08:00
dragonish
acd5892f99
tweak(data): supplement the default setting value
2025-04-02 21:25:26 +08:00
dragonish
ee3122c7d1
feat: support read the enabled status from the cssclasses field of property
...
Resolve : #5
2025-04-02 19:56:23 +08:00
dragonish
5941b848a8
feat: support control of the enabled status in each note
...
Add new settings and support reading information from metadata.
Refs: #5
2025-04-02 19:06:43 +08:00
dragonish
8809c4870f
types(data): simplify type
2025-04-02 13:42:57 +08:00
dragonish
e976e15f9b
docs(dom): format comment
2025-03-31 14:55:02 +08:00
dragonish
b147d52806
tweak(outline): handle cases where the heading contains html
...
If the heading contains HTML tags, it will be judged as not matching
the heading text in the outline.
2025-03-31 14:45:54 +08:00
dragonish
d00a090099
feat(outline): add support for outline plugin
...
Resolve : #2
2025-03-31 13:41:04 +08:00
dragonish
4b358eb442
types: put the common type globally
2025-03-30 17:19:35 +08:00