Spencer Gouw
7313ef9d44
Merge branch 'main' of https://github.com/rabirabirara/obsidian-jelly-snippets
2023-10-08 18:54:25 -05:00
Spencer Gouw
2e1764a3bf
fix: use EditorView (CM) to dispatch changes
2023-10-08 18:54:15 -05:00
Spencer Gouw
4a50f993b7
Update README.md
2023-10-08 13:08:45 -07:00
Spencer Gouw
5737b07d36
chore: update manifest.json to 0.1.8
2023-10-08 04:07:38 -05:00
Spencer Gouw
bbc462f18c
Update README.md
2023-10-08 02:03:38 -07:00
Spencer Gouw
56935ca760
Merge branch 'main' of https://github.com/rabirabirara/obsidian-jelly-snippets
2023-10-08 03:59:45 -05:00
Spencer Gouw
eba93321df
fix: stop trimming LHS, instead split by div\n
2023-10-08 03:59:25 -05:00
Spencer Gouw
32fc03607c
Update README.md
2023-09-24 19:40:38 -07:00
Spencer Gouw
6e15adc2d4
Merge branch 'main' of https://github.com/rabirabirara/obsidian-jelly-snippets
2023-09-24 21:13:08 -05:00
Spencer Gouw
257616bf9f
chore: update manifest/versions
2023-09-24 21:12:30 -05:00
Spencer Gouw
8cfee7d4dd
Update README.md
2023-09-23 15:20:42 -07:00
Spencer Gouw
27e04f24ee
Update README.md
...
small tutorial and todos updating
2023-09-23 15:20:19 -07:00
Spencer Gouw
7e1c6f7954
feat: add Space to symbol list
2023-09-23 17:12:31 -05:00
Spencer Gouw
6b6787a552
feat: rewrite auto-enter logic to make more sense and work with symbols
...
AutoTriggerEnter logic had a few problems. It wasn't generalized at all and very cumbersome.
There is a simple way to think about the snippet-replacement cycle works.
1. You press enter. A newline is emitted *first*.
2. Peek up and to the right (your old position). Try snippet.
3. If didn't trigger, keep the cursor in the new position.
4. If did trigger, the cursor has moved to cursorEnd.
5. Get rid of the extra newline. It should be between the end of the replacement and the line after it.
6. If YesWS, then add a newline right where you are.
This is how the new logic works.
2023-09-23 16:47:52 -05:00
Spencer Gouw
66ba56328c
doc: add comment for return undefined
2023-09-23 16:46:42 -05:00
Spencer Gouw
998489b576
fix: getSnippetType now properly ORs a number
...
The importance of writingn unit tests.
2023-09-23 13:12:02 -05:00
Spencer Gouw
b10ec1ade3
fix: delete only eol with autotrig enter nows
2023-09-22 22:38:05 -05:00
Spencer Gouw
8cf68cfc87
fix: start endFoundIdx at -1
2023-09-22 22:14:57 -05:00
Spencer Gouw
b769bf70be
refac: properly acknowledge __MR snippet type info
...
Does not fix interaction with auto trigger by enter yet.
2023-09-22 02:44:57 -05:00
Spencer Gouw
641fef15df
clean/feat: integrate symbols with main and clean old comments
2023-09-22 02:22:02 -05:00
Spencer Gouw
7c75776464
feat: replace symbols works
2023-09-22 02:09:10 -05:00
Spencer Gouw
65572b4632
feat: basic snippet data structure
2023-09-21 22:30:59 -05:00
Spencer Gouw
ebea47cde8
feat: symbol replace and more advanced enum
2023-09-21 22:03:46 -05:00
Spencer Gouw
18e4c2e28f
feat: basic symbol enum
2023-09-21 21:42:41 -05:00
Spencer Gouw
86ba8bfade
revert a4c6600
...
This doesn't work if the user doesn't add newlines for the snippets. It's also super manual and hacky. Better to have a solution that doesn't require precision.
2023-09-21 21:36:19 -05:00
Spencer Gouw
a17c4d0dd4
clean: some prints removed
2023-09-18 01:23:06 -05:00
Spencer Gouw
2236c94372
clean: some comments cleaned, one print adjusted
2023-09-18 01:21:57 -05:00
Spencer Gouw
56dd23b30d
Merge branch 'main' of https://github.com/rabirabirara/obsidian-jelly-snippets
2023-08-31 00:22:13 -05:00
Spencer Gouw
a4c6600aaf
feat: allow whitespace at ends of snippets
2023-08-31 00:22:06 -05:00
Spencer Gouw
b8984d2e69
Update README.md
2023-08-30 21:59:45 -07:00
Spencer Gouw
b43bd93d0f
Update README.md
2023-08-23 07:13:08 -07:00
Spencer Gouw
e54e2dc245
chore: update manifest/versions
2023-08-20 13:15:15 -05:00
Spencer Gouw
b8da7a9e10
feat/refac: rewrote snippet detection, added multiline lhs/rhs
2023-08-20 13:12:38 -05:00
Spencer Gouw
0c1ed70b5c
refac: denest triggerSearchSnippet
2023-08-19 08:16:32 -05:00
Spencer Gouw
1df6b5b0ed
chore: update manifest/versions
2023-06-22 05:35:15 -07:00
Spencer Gouw
3d9594893b
Update README.md
2023-06-22 05:32:29 -07:00
Spencer Gouw
c80fe93e57
Update README.md
2023-06-22 05:31:58 -07:00
Spencer Gouw
f3d5309f44
feat: added newline as snippet divider
2023-06-22 05:26:15 -07:00
Spencer Gouw
553b946db8
clean: format
2023-06-22 05:21:01 -07:00
Spencer Gouw
1b86e49dd3
feat: add resize:both; css and scaling adjustments
2023-04-21 18:40:59 -07:00
Spencer Gouw
cc74741cf8
misc: update pnpm-lock.yaml...??
2023-04-20 02:56:08 -07:00
Spencer Gouw
9f559b93b6
clean: format and add comment
2023-04-20 02:55:19 -07:00
Spencer Gouw
ce26634007
doc: Update README.md
2023-04-14 15:37:07 -07:00
Spencer Gouw
ead9521598
doc: updated readme
2023-04-14 15:35:20 -07:00
Spencer Gouw
35db28b423
fix: changed !== to === EnabledNoWS...
2023-04-14 15:28:30 -07:00
Spencer Gouw
d6d97d39b1
updated manifest.json to v0.1.4
2023-04-14 15:27:48 -07:00
Spencer Gouw
61b3c930d2
clean: comments, TODOs
2023-04-14 15:11:38 -07:00
Spencer Gouw
787db1af3f
feat: add options for whitespace or not after snippet trigger
2023-04-14 15:03:44 -07:00
Spencer Gouw
dcdb19e27d
fix: triggerOnEnter should no longer undo!!!
2023-04-14 14:57:38 -07:00
Spencer Gouw
5d41cf173e
fix: defaults should be all off
2023-04-14 14:49:24 -07:00