Commit graph

209 commits

Author SHA1 Message Date
dragonish
7a24f2af8a
docs(readme): update gutter image in README files
Replace the gutter.png image with gutter.jpg across all README files
(English, Simplified Chinese, and Traditional Chinese) for improved
compatibility and reduced file size.
2026-03-10 21:16:31 +08:00
dragonish
b678ded311
ci(contributors): use the login name of GitHub 2026-02-19 21:21:43 +08:00
dragonish
7edb5a78ad
chore(release): 3.1.0 2026-02-19 21:04:55 +08:00
dragonish
d2f8a1d953
refactor(counter): format code according to ESLint rules 2026-02-19 21:04:27 +08:00
dragonish
1219dce0e0
chore(package): upgrade development dependencies 2026-02-19 20:59:17 +08:00
dragonish
d31e2879cd
ci(release): print contributors in content 2026-02-19 20:50:47 +08:00
dragonish
5646263908
docs(readme): add description of new settings
Refs: #23
2026-02-19 20:27:19 +08:00
dragonish
7d856aa246
ui(locales): update the translation for Traditional Chinese 2026-02-19 20:25:40 +08:00
dragonish
e6992e6fe4
merge(main): merge pull request #23 from victor-software-house/feat/gutter-decorator 2026-02-19 20:03:16 +08:00
Victor Araújo
3542047d19 docs(images): add gutter decorator screenshot 2026-02-18 07:53:40 -03: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
95a85495d3 fix(styles): improve gutter marker visibility and font size
Use var(--font-small) instead of var(--font-smallest) for slightly
larger gutter text. Replace opacity stacking (which doubled with
--text-faint color) with color-mix() for proper transparency control.
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
2af9551ea8
chore(release): 3.0.1 2026-01-14 20:38:41 +08: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
6c09fe9a29
ci(notification): improve notification 2026-01-12 22:14:48 +08:00
dragonish
4ff081e800
chore(release): 3.0.0 2026-01-10 20:01:55 +08:00
dragonish
8e0dc1eb59
ci(gitea): add Gotify notifications 2026-01-10 19:59:37 +08:00
dragonish
1dc5a821f6
ci(checkout): update action version 2026-01-10 19:53:22 +08:00
dragonish
0647151ff0
docs(readme): add description of new settings
Refs: 138c7841c9
2026-01-09 19:46:57 +08:00
dragonish
138c7841c9
feat: add a new splice decorator mode 2026-01-09 19:27:54 +08:00
dragonish
a1ab90397a
test(counter): simplify code 2026-01-09 18:41:25 +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
767c00a905
docs(readme): add description of new settings
Refs: c0bd1e15aa
2026-01-09 13:07:00 +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
5389b73bc9
refactor(setting): optimize the code of the setting tab 2026-01-08 13:07:32 +08:00
dragonish
423901da09
docs(readme): add description of decorator element attributes
Refs: ac1c3b1b18
2026-01-06 20:59:45 +08:00
dragonish
ac1c3b1b18
feat(attr): add a new attribute to decorator elements
add a`data-decorator-level` attribute to the element.
2026-01-06 20:47:37 +08:00
dragonish
fd39b029aa
refactor(classname): adjust the reference method of the class name 2026-01-05 17:29:36 +08:00
dragonish
b1fcb8d4ab
chore(package): upgrade development dependencies 2026-01-05 13:05:00 +08:00
dragonish
6cd19cb0e7
docs(readme): optimize table format 2026-01-05 12:58:49 +08:00
dragonish
bce0df7e81
chore(release): 2.3.1 2025-11-30 22:56:38 +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
d329b8abf3
ci(node): update the Node.js version 2025-11-30 22:10:45 +08:00
dragonish
8e68278457
chore(package): upgrade development dependencies 2025-11-30 22:09:10 +08:00
dragonish
d832a99731
chore(release): 2.3.0 2025-08-24 20:38:51 +08:00
dragonish
5244d7579c
docs(readme): add a description for the new setting
Refs: dd8eb7b53d
2025-08-24 16:11:20 +08:00
dragonish
abeada2882
ui(zh-tw): adjust the description 2025-08-24 16:09:25 +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
92ed1db7e5
chore(package): upgrade development dependencies 2025-08-23 15:16:14 +08:00
dragonish
34fd679962
ci(scripts): adjust the output format of the changelog 2025-08-16 22:21:24 +08:00
dragonish
1d9f2c593d
chore(release): 2.2.0 2025-08-16 22:18:33 +08:00
dragonish
99943ed615
feat: add support for custom leading delimiter
Resolve: #19
2025-08-16 10:25:31 +08:00
dragonish
fc3c9e0ba5
chore(release): 2.1.0 2025-08-11 21:37:57 +08:00