kotaindah55
31c75bd532
chore: add keyword "obsidian-plugin" to package.json
2025-04-07 04:26:14 +02:00
kotaindah55
54c0ec3c45
fix: mistake of advancing line via Text.line() instead of TextCursor.next()
...
This leads RangeError when parser skips the blank line.
2025-04-07 03:28:33 +02:00
kotaindah55
77620ebe89
refactor(TextCursor): translate Text's "address" after address change loop has been finished
2025-04-07 03:24:59 +02:00
kotaindah55
f7c172fab8
chore: bump to 2.0.7
2025-04-06 23:02:22 +02:00
kotaindah55
764c856b4d
chore: remove unnecessary dependencies
2025-04-06 23:01:55 +02:00
kotaindah55
a448ff7ffe
style: use tabs instead of spaces
2025-04-06 23:00:52 +02:00
kotaindah55
18b9e0f8f3
refactor: reorganize source codes
...
Most of the codes were organized, with the addition of replacing spaces with tabs, removing unused functions and snippets, etc.
2025-04-06 23:00:24 +02:00
kotaindah55
4f5e62bc0a
feat: use TagManager instance to manage all custom tags
2025-04-06 22:56:49 +02:00
kotaindah55
95f061ae6f
chore: add .editorconfig file
2025-04-06 22:56:02 +02:00
kotaindah55
f436df2c0d
chore: migrating to MIT License
2025-04-06 22:23:11 +02:00
kotaindah55
ea97f16b55
chore: migrating to MIT License
2025-04-06 22:22:39 +02:00
kotaindah55
af3c3c05da
perf: empty containerEl on tab hide instead on display beginning
...
Thus, it ensure there is no persist and remain unused element in the background.
2025-03-20 20:54:16 +02:00
kotaindah55
cf7906e851
chore: bump version to 2.0.6
2025-03-20 16:55:25 +02:00
kotaindah55
a648055356
refactor: rename TokensCatcher to TokensBuffer
2025-03-20 16:45:43 +02:00
kotaindah55
92830cafab
fix(parser): error when encounter math syntax in a blockquote
...
This happen when getShifterStart() was trying to get math open inside a blockquote. Normally, getOpen() method in the ShifterNodeConfigs will recursively look for any of shifter node behind, using node.prevSibling prop to catch it. It doesn't result null value, except for the mentioned case above. So, we need to track the parent firstly, in this case it's a blockquote node, then get the previous sibling (it's blockquote too) and pick its last child (which is another math node).
2025-03-20 16:37:53 +02:00
kotaindah55
17d3c9ce34
chore: bump to 2.0.5
2025-03-18 15:21:53 +02:00
kotaindah55
c3029db6d7
docs: add latest features explanation
2025-03-18 15:20:01 +02:00
kotaindah55
3bcb491d22
docs: move "Syntax Rules" section to separate md
2025-03-18 15:19:32 +02:00
kotaindah55
23e0d87546
revert: use wrap() back as it providing detectWord option
2025-03-17 23:30:32 +02:00
kotaindah55
75ec4828cd
refactor: rename toggleDelim() to toggleInlineDelim
2025-03-17 23:29:32 +02:00
kotaindah55
0c9a316cca
refactor: add detectWord parameter to the wrap()
...
The value should be true when tidier formatting was switched on.
2025-03-17 23:28:42 +02:00
kotaindah55
cbff48de5a
fix: non-tidier format acts like the tidier one
...
This was fixed by not using wrap() to wrap with delimiters.
2025-03-17 23:17:58 +02:00
kotaindah55
25771e6600
revert: rebump to 2.0.4
...
Fix #8 issue. Don't make new version while it has not been released yet.
2025-03-17 21:23:01 +02:00
kotaindah55
dd3ab6eb7a
refactor: reorganize folders and files
2025-03-17 11:14:27 +02:00
kotaindah55
841ab04b78
refactor: add some types as helper to the core functionality
2025-03-17 11:12:52 +02:00
kotaindah55
fbc9b8e0d6
chore: update tag menu style rules
2025-03-17 11:11:02 +02:00
kotaindah55
e2dc6b39e7
chore: update builtin-modules to 5.0.0
2025-03-17 11:09:36 +02:00
kotaindah55
c2bb8a67d2
feat: register formatting commands and context menu
2025-03-17 11:09:01 +02:00
kotaindah55
33e80fe525
feat: add settings to customize predefined tags for the custom span and fenced div
2025-03-17 11:06:37 +02:00
kotaindah55
f54b8b831b
feat: use TagMenu to cover all tag-based formatting
...
Additionally, ColorMenu has to be removed, and use Formatter directly rather than caching some token informations to the menu.
2025-03-17 10:41:52 +02:00
kotaindah55
cf701cad4d
perf: ColorButton no longer held token ranges information
...
All of this can be done with Formatter instance through menu item onClick event.
2025-03-17 10:38:26 +02:00
kotaindah55
a33f9f83e1
refactor: remove restartObserver redundants
...
Call observe() inside restartObserver() rather than replicating it inside.
2025-03-17 10:36:08 +02:00
kotaindah55
a6c44bd794
feat: pick certain tokens from the maps based on their format type
2025-03-17 10:34:12 +02:00
kotaindah55
7937dbaabb
fix: iteration no longer missed some regions
...
Use for loop directly and remove the cache mechanism, it seems to be redundant.
2025-03-17 10:32:19 +02:00
kotaindah55
47bf42e0fe
perf: add identity checking, avoiding decoration facet recomputation
2025-03-17 10:28:21 +02:00
kotaindah55
076ed7d952
refactor: check core activity using ActivityRecorder
...
Key-paired activity checking. So, checking only is done once in the same activity. The keys and the activity states will be reseted once the view or the activity have been updated.
2025-03-17 10:26:53 +02:00
kotaindah55
9518006ff1
refactor: menuInvoker annotation be no longer needed
...
Tag menu will only be invoked through click event on the color button, command, or Formatter instance.
2025-03-17 10:15:33 +02:00
kotaindah55
a7bc51fed2
refactor: menuInvoker annotation be no longer needed
...
Tag menu will only be invoked through click event on the color button, command, or Formatter instance.
2025-03-17 10:13:37 +02:00
kotaindah55
e2587b2be5
feat: use a formatter as formatting helper
...
Has an ability to format in a tidier way (configurable in settings).
2025-03-15 04:37:55 +02:00
kotaindah55
1839a6c586
chore: bump to 2.0.5
2025-03-15 04:30:56 +02:00
kotaindah55
1cf540693f
fix: add missing argument
2025-03-07 14:06:16 +02:00
kotaindah55
76a343c1ac
feat: invoke tag menu (i.e. color menu and class menu) when provided related annotation
2025-03-07 14:03:20 +02:00
kotaindah55
428dc4bd6a
style: add doc comment to the decoSetField
2025-03-07 14:01:05 +02:00
kotaindah55
3c27c28167
fix: color menu not showing when the cursor was placed in the end of line
2025-03-07 13:59:47 +02:00
kotaindah55
6b3e92aa04
refactor: add moveCursorAfterTag and itemIndexCache parameters
2025-03-07 13:58:25 +02:00
kotaindah55
dae146607f
feat: move the cursor right after the tag when set to true
2025-03-07 13:56:22 +02:00
kotaindah55
bb47d81e7a
feat: cache last selected item when provided
2025-03-07 13:53:54 +02:00
kotaindah55
eca8b359f2
feat: cache last selected item when provided
2025-03-07 13:52:09 +02:00
kotaindah55
a6afbe08b4
refactor: add selectedRegion iterator method to SelectionObserver
2025-03-07 13:47:04 +02:00
kotaindah55
6198df80fe
style: shorten "Customize" into "Custom"
2025-03-07 13:44:52 +02:00