683376be6e
fix: temporary userdata type check rather than nil
2024-11-17 19:26:17 +01:00
ce6670fdb7
fix: set tick also when resynching
2024-11-17 17:01:55 +01:00
3f098185ca
fix: wrap process_changes fn to provide controller
2024-11-17 13:42:17 +01:00
1543625bd5
fix: compare hash before change
...
this anticipates a fix that is going to land in 0.8.3
2024-10-27 19:54:43 +01:00
d15336cb4a
chore: leftover from async send
2024-10-27 19:52:57 +01:00
68cd197c07
fix: on desync, still reset lock
...
otherwise callback will never run again!!
2024-10-27 19:52:35 +01:00
638976317e
chore: move to separate fn the on_bytes cb
2024-10-27 19:52:08 +01:00
a130c24687
fix: no longer async
2024-10-26 20:22:54 +02:00
7f0dd45ac0
fix: ack when applying changes
2024-10-26 18:28:40 +02:00
c92b1799b6
chore: updated to codemp 0.8
2024-10-26 18:16:18 +02:00
9e22411df8
chore: update usage with data structs
2024-10-26 17:51:16 +02:00
7f5d7b23b5
fix: clear cursor, buffers, workspace and mappings
...
i think this is everything?
2024-10-03 00:13:10 +02:00
222869464f
fix: buf tick equals
...
in theory it should always be the same, because we call set_content()
and before that resolves our callback runs. HOWEVER, i dont know, nvim
is driving me insane...
2024-10-02 14:18:28 +02:00
192910db5d
fix: set fileformat later, maybe fixes gitsigns?
2024-09-28 00:17:39 +02:00
d0d1fb73ae
fix: invoke attach callback on main thread
2024-09-27 23:35:26 +02:00
a001a96abf
feat: ask what to do when out of sync
2024-09-27 20:52:56 +02:00
3ee546be4d
fix: lock for receiving changes
...
must never have more than 1 callback consuming
2024-09-26 17:42:48 +02:00
8a4e6e828a
fix: collect garbage when detaching for faster dc
2024-09-26 16:39:04 +02:00
2391b3c4fd
fix: just ask if overwriting when attaching
...
to upload content cancel attach and use force share
2024-09-26 03:42:29 +02:00
b3315dff9b
feat: prompt if overwrite buf, better attach fn
2024-09-26 03:29:13 +02:00
db56df9c58
fix: 0 is truthy in lua????
2024-09-25 23:35:17 +02:00
9ea2827277
fix: catch attach error for dupe name early
2024-09-25 23:32:51 +02:00
33c08653fa
fix: dont delete buffer when detaching
2024-09-25 23:15:33 +02:00
8a93fb5dc2
feat: follow others
2024-09-25 04:00:46 +02:00
52d356ea02
feat: reworked colors, improved cursor marker
2024-09-25 02:11:58 +02:00
d524076412
chore: global CODEMP object
...
i dont really like global state but it seems to be necessary when
working with callbacks
2024-09-17 17:26:23 +02:00
9dea608f04
feat: non-blocking API
2024-09-17 16:33:22 +02:00
bbc86f3ac4
chore: new api
2024-09-16 18:27:23 +02:00
637a6ee11d
fix: if not given, default to current buffer
2024-09-15 12:39:50 +02:00
dc6c675615
fix: only set content on attach if it differs
2024-09-14 15:18:44 +02:00
335ea236c4
fix: dont require window until its used
...
so that config can be properly loaded first
2024-09-14 14:24:48 +02:00
14f5e52e99
fix: deal with some sending edge cases
2024-09-09 05:14:52 +02:00
b824b87505
feat: now sync only sets buffer if necessary
...
does one extra get_content but worth it because we dont mess with undo
history
2024-09-09 05:14:19 +02:00
b141ca5a2a
fix: catch out-of-bounds line deletion sending
2024-09-09 02:49:49 +02:00
3f5ce44b96
fix: sending change across multiple lines
2024-09-09 02:37:50 +02:00
0eeedead59
fix: refresh tree when interacting with buffers
2024-09-07 03:35:32 +02:00
c080514c3e
fix: delete command
2024-09-07 01:35:45 +02:00
661985c62b
fix: set ft after detecting
2024-09-06 19:58:03 +02:00
f2121df6dc
feat: re-run filetype detection after attach
2024-09-06 19:55:01 +02:00
373b155864
fix: more consistent current buffer commands
2024-09-06 19:49:52 +02:00
4cfa7baa28
fix: set buffer name when attaching
2024-09-06 19:40:52 +02:00
9873617742
fix: dont prefix codemp:: so filename matches
2024-09-06 19:13:08 +02:00
68362f1f08
fix: wait for initial buffer content sync
2024-09-06 18:24:57 +02:00
30cf1e1554
fix: while attaching, set content later
2024-09-06 17:23:18 +02:00
2176d32540
fix: added back create function
2024-09-06 15:13:36 +02:00
a4c519f799
feat: debug prints
2024-09-06 03:53:52 +02:00
0987a7b022
chore: moved under lua/codemp
2024-09-05 04:57:47 +02:00