Commit graph

196 commits

Author SHA1 Message Date
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
kotaindah55
a96ceabb9d style: fix typo on "behaviour" 2025-03-07 13:43:27 +02:00
kotaindah55
c56777cf42 fix: enable auto-sort in Decoration.set avoiding not-in-order omitted delim set
This happens when a token was nested within another token. So, the closing delimiter of the nested within is ahead of both delimiters of the nested one (That closing should be the last in order).
2025-03-07 02:15:55 +02:00
kotaindah55
53a1b1f593 refactor: set menu instance appart from the button widget
It will be intended to be applied not only to the color button in the upcoming release.
2025-03-06 17:00:44 +02:00
kotaindah55
1bc541720a refactor: set parser and observer state to false when the view update was invoked
It is due to view update may be invoked twice with the same state, enhancing efficiency.
2025-03-06 16:56:55 +02:00
kotaindah55
e690d60d80 refactor: rename "BuilderPlugin" to "EditorPlugin" 2025-03-06 16:53:21 +02:00
kotaindah55
f3cbac5226 fix: fenced div opening was displayed while it should be hidden
Mistake happens when taking docChanged as a parameter. It wasn't always notify there is currently parsing activity.
2025-03-06 16:51:46 +02:00
kotaindah55
f4851c55e7 style: use "configs" instead of "configArr" 2025-03-05 21:31:33 +02:00
kotaindah55
b672ca57a1 style: use "configs" instead of "configArr" 2025-03-05 21:29:56 +02:00
kotaindah55
7d3800511a feat: apply draggable interface to the color palattes setting 2025-03-05 21:29:18 +02:00
kotaindah55
d582b324c4 style: change from "Customize colors" to "Color palettes" 2025-03-05 21:27:45 +02:00
kotaindah55
5f7716fb67 style: use "colors" keyword instead of "stylesheet" 2025-03-05 21:27:09 +02:00
kotaindah55
de5de8f8de fix: highlight color no longer disappears in canvas 2025-03-05 21:25:04 +02:00
kotaindah55
451374a33b build: be able to move certain style rule to any position in the range 2025-03-05 21:21:51 +02:00
kotaindah55
54180301f5 build: generate tokens mapping to each of selection ranges.
Will be useful for appliying formatting commands.
2025-03-05 21:19:50 +02:00
kotaindah55
c77b880976 fix: have to check selection index cache avoiding range error 2025-03-05 21:16:01 +02:00
kotaindah55
404b85cddd refactor: remove SelectionObserver handler register
Prefer use callback directly for efficiency.
2025-03-05 21:14:44 +02:00