Commit Graph

90 Commits

Author SHA1 Message Date
arne314
2565e815cf minor(snip)!: add root to f(x) conflicts 2025-06-17 21:07:34 +02:00
arne314
7cd4751162 fix(snip): markup/math detection edge cases 2025-06-14 14:41:48 +02:00
arne314
8da248151f minor(snip)!: add Pi and Xi to index conflicts 2025-06-14 13:21:26 +02:00
arne314
b73f580d1c fix(snip): markup detection edge case 2025-06-12 19:17:29 +02:00
arne314
96651972b0 feat(snip): add undo breakpoints 2025-06-11 17:07:26 +02:00
arne314
a2931f0c68 minor(snip): add partial snippets 2025-06-11 16:25:56 +02:00
arne314
849cd69f47 minor(snip)!: add log to conflicts 2025-05-19 18:13:24 +02:00
arne314
c7a2c13383 minor(snip)!: list helper 2025-05-18 00:15:56 +02:00
arne314
73191eb32c refactor(snip): improve line prepend implementation 2025-05-17 23:51:00 +02:00
arne314
0fdcfcc9c0 refactor(snip): separate engine and helpers 2025-05-15 00:33:36 +02:00
arne314
abb355c505 refactor(snip): syntax of line prepended snippets 2025-05-14 19:25:30 +02:00
Eagle4398
8295b2e4b6 feat(snip): prepend to expanded lines (#15)
* changed add_to_newl behavior to auto-indent

* commented debug messages

* fixed dm inine according to into_newl change

* oops. no visual doubling with inline dm

* in theory indent and prepend block functionality...

* parameter switch

* comments

* added prepend parameters to intonewl

* refinement

* necessary changes for dm snippet

* backup in comment

* style: format code

* refactor: remove commented code

---------

Co-authored-by: Arne <73391160+arne314@users.noreply.github.com>
2025-05-14 18:50:55 +02:00
arne314
93ad652b88 fix: breaking treesitter changes of nvim 0.11 2025-05-04 16:50:51 +02:00
arne314
db88f070ec fix: survive multiple plugin setup calls 2025-05-04 15:49:55 +02:00
arne314
45afd171f6 fix(snip): allow trigger options in start snip 2025-04-30 23:36:45 +02:00
arne314
64ef6a4d6e minor(snip): add f(x) trigger blacklist 2025-04-30 00:58:43 +02:00
arne314
71c1e15ce2 feat(snip): trigger blacklist option 2025-04-30 00:44:16 +02:00
arne314
7ffa4efe3c refactor(snip)!: trigger options parameter 2025-04-30 00:43:18 +02:00
arne314
b47e98e478 feat(snip): indent multiline visual operations 2025-04-28 00:08:49 +02:00
arne314
5297c53a56 minor(snip): add agl for angle brackets 2025-04-27 00:12:39 +02:00
arne314
28046452a7 minor(snip): add fox for f(x) and variations 2025-04-27 00:10:08 +02:00
arne314
daed44d47a revert: theorem trigger 2025-04-27 00:03:57 +02:00
arne314
6cec2691e4 fix(snip): use centered dots in matrices 2025-04-26 21:12:32 +02:00
arne314
8e15b84bc5 minor(snip)!: update ctheorems snippets 2025-04-24 11:21:42 +02:00
arne314
7ea4e59c4b minor: fix typo 2025-04-07 19:49:31 +02:00
arne314
ae38a4c09b fix: allow overriding of computed max trig length 2025-04-07 16:44:36 +02:00
Eagle4398
ec5caf32a8 feat(snip): expand into next line with correct indent (#13)
* New snippet type. Expand from nonempty line into next line.

* Fix trigger to ' dm' instead of 'dm'

* style: format code

* minor: improve regex

---------

Co-authored-by: arne314 <73391160+arne314@users.noreply.github.com>
2025-03-22 10:02:26 +01:00
arne314
ca3fcec66c fix(anki): reload nvim buffer on anki id update 2025-03-19 13:10:44 +01:00
arne314
f204b74eae minor(snip)!: sect -> inter as in typst 0.13 2025-03-09 11:59:20 +01:00
arne314
89de725101 minor(snip): use dif in dx/ddx 2025-02-10 12:23:01 +01:00
arne314
0f20a72e39 minor(snip): add Im to index conflicts 2025-02-10 12:21:34 +01:00
arne314
f531a57494 fix(snip): ignore conflicts in markup indices 2025-01-30 13:23:40 +01:00
arne314
5d4859d1b4 minor(snip)!: improve deriv and markup indices 2025-01-30 13:17:13 +01:00
arne314
2481c329f9 perf(snip): consider max trigger length 2025-01-29 15:40:36 +01:00
arne314
d0042ce419 feat(snip): exclude snippets by trigger 2025-01-28 17:03:23 +01:00
Linus
051ff69375 Merge branch 'dev' into index-confilicts-readable-typst 2025-01-25 18:46:56 +01:00
lentilus
e9a653b4e2 minor(snip): resolve index conflict with lentilus/readable-typst cal letters 2025-01-25 17:40:13 +00:00
Linus
c305ff51fb Merge pull request #9 from arne314/phi-and-eta
Phi and eta
2025-01-25 16:18:49 +01:00
arne314
4ab5712360 feat(anki): reimport flashcards 2025-01-25 16:10:13 +01:00
lentilus
1d0e65a6c5 minor(snip)!: h for eta 2025-01-25 14:51:23 +00:00
lentilus
c37a8c75d7 minor(snip): f for phi 2025-01-25 14:48:24 +00:00
arne314
1407178ba7 minor(snip): add fraction and ball snippet 2025-01-23 13:36:58 +01:00
arne314
7f0f40c021 minor(snip): fix typo 2025-01-20 17:28:05 +01:00
arne314
4ac566945e feat: get plugin directory from lua debug 2025-01-18 19:58:43 +01:00
arne314
169714435e perf(snip): make use of custom wordtrig 2025-01-16 23:11:40 +01:00
arne314
65e3295826 fix(snip): unicode matching problems 2025-01-16 23:09:50 +01:00
arne314
1cbc6086de perf(snip): consider fixed trigger lengths
ignore the first part of a line if the trigger length is known
2025-01-16 00:28:59 +01:00
arne314
1b4cac06ae fix(snip): use wordtrig for short triggers 2025-01-15 16:11:11 +01:00
arne314
0917648f54 feat(snip): expand index snippets on punctuation 2025-01-15 15:56:23 +01:00
lentilus
76a8fdd5fb fix: add el to index conflicts 2025-01-15 13:48:45 +00:00