Commit graph

148 commits

Author SHA1 Message Date
d991a81601
feat: better user cursor highlights 2024-09-25 00:36:08 +02:00
bf59d71e3b
fix: print error as err 2024-09-18 00:39:52 +02:00
51d6628fd4
fix: catch callback errors
very ugly code! will need a fix rust-side...
2024-09-18 00:28:01 +02:00
6b3e4a3faa
fix: allow setting debug file 2024-09-17 23:49:58 +02:00
90d5a57037
fix: new names 2024-09-17 23:48:53 +02:00
d8990452d0
fix: setup plugin in setup() fn
so that configuration can reach logger and callbacks
2024-09-17 22:12:15 +02:00
9d7410b725
fix: hook back logger 2024-09-17 19:49:26 +02:00
16f9bd77fd
fix: tree redraw, always expand nodes 2024-09-17 18:43:45 +02:00
eda004423e
fix: register workspace event poller after 2024-09-17 18:10:07 +02:00
2e26df05e2
fix: pass callback arg, add available field 2024-09-17 17:58:32 +02:00
32e056de91
fix: check for nil and empty string
empty string is not falsy in lua? idk
2024-09-17 17:50: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
45231e3eb8
fix: setting global client 2024-09-17 16:36:51 +02:00
c4c3d0ced9
fix: run callbacks on main thread 2024-09-17 16:35:27 +02:00
9dea608f04
feat: non-blocking API 2024-09-17 16:33:22 +02:00
81baba98db
fix: actually clear usr and check if hl is present 2024-09-17 02:01:48 +02:00
321e6a34bb
fix: only clear user hl if was present 2024-09-17 01:55:43 +02:00
d98f6707d0
fix: get promise value in timer, schedule cb 2024-09-17 01:55:18 +02:00
ecf58046b5
fix: run poller callbacks on main thread 2024-09-17 01:45:54 +02:00
b80d1898be
fix: normalize share path on windows 2024-09-17 01:07:23 +02:00
5eaefb52c7
fix: filter fn 2024-09-16 20:50:28 +02:00
f2fdaa40a5
fix: workspace list hints 2024-09-16 20:49:02 +02:00
06fa78e6cc
fix: buffers command, some ux in cmds 2024-09-16 20:46:10 +02:00
0a3e37c94d
fix: move to another window before setting cursor 2024-09-16 20:26:20 +02:00
9780059f90
fix: dont use RowCol anymore
its tables all the way down...
2024-09-16 20:19:56 +02:00
9b6739b167
feat: send an away cursor when going on other bufs 2024-09-16 20:14:32 +02:00
df47c21629
feat: jump to user when pressing 2024-09-16 20:10:54 +02:00
c8698d4d91
feat: connect/disconnect, track user pos
added a jank timer poller to check if promise for workspace event is
done
2024-09-16 20:01:09 +02:00
1ef6d1d2c4
fix: use workspace name 2024-09-16 18:27:37 +02:00
bbc86f3ac4
chore: new api 2024-09-16 18:27:23 +02:00
f7c64afc18
feat: faster callback polling, smoother cursors 2024-09-16 04:13:54 +02:00
0ac25f3ee5
fix: refresh workspace list after creating one 2024-09-15 12:51:19 +02:00
d9f4446fc9
fix: better prompts for add 2024-09-15 12:46:43 +02:00
f6561ad361
feat: allow sharing from neo-tree view 2024-09-15 12:43:59 +02:00
637a6ee11d
fix: if not given, default to current buffer 2024-09-15 12:39:50 +02:00
07344401dc
feat: workspace join and buffer attach show picker
when invoked as command without argument, rather than failing will show
a vim.ui.select with all available options
2024-09-15 12:39:12 +02:00
a0c1fb3acd
fix: confirm before deleting buffers/workspaces 2024-09-15 12:10:19 +02:00
2abe23e493
fix: first time load should not break installation 2024-09-14 23:57:47 +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
8a12b109ff
fix: setup just changes config
so its not really needed
2024-09-13 23:46:59 +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
087df96566
feat: buffer len util 2024-09-09 05:14:10 +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
27ad9fe773
fix: get rid of order_tuples
no longer necessary: lib does it under the hood since forever
2024-09-09 02:37:32 +02:00
0c078ddcf1
fix: only expand all when changing state
so now toggling with enter works and doesnt bug out
2024-09-08 06:24:34 +02:00
368dd727c5
chore: codemp.dev -> code.mp 2024-09-07 22:12:32 +02:00
6a0ba39685
fix(neotree): expand also children 2024-09-07 05:10:58 +02:00
89e3f3e2c7
fix(neotree): return after toggling 2024-09-07 05:07:06 +02:00
3260fdf196
fix(neotree): make sure spacer ids dont repeat 2024-09-07 05:06:52 +02:00
2fd15290b9
fix(neotree): open and add actions 2024-09-07 05:03:34 +02:00
cb2069196e
fix(neotree): missing imports 2024-09-07 04:46:50 +02:00
e56436d9df
fix(neotree): back at depth 1 but custom indent
can i get it to render at depth 0?
2024-09-07 04:45:45 +02:00
134a1b6f00
fix(neotree): now everything sits under codemp title 2024-09-07 04:37:49 +02:00
f5a66f8ba7
fix(neotree): new icons for workspace and color for btn 2024-09-07 04:37:16 +02:00
eb6913fc39
fix(neotree): lighter sections, always add users 2024-09-07 04:30:40 +02:00
dfb3f0458a
fix(neotree): text and action 2024-09-07 04:26:21 +02:00
3f4414dd25
feat(neotree): more sections with more info 2024-09-07 04:23:24 +02:00
9eb057eeac
fix: typo, check direction 2024-09-07 04:05:29 +02:00
5c3f7dc85e
feat(neotree): improved tree view 2024-09-07 04:01:48 +02:00
1732f94add
fix(neotree): remove extra spacer, access root array 2024-09-07 03:37:51 +02:00
89b75430e0
feat(neotree): better tree structure 2024-09-07 03:36:16 +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
7fd36cf95c
feat: delete command in neo-tree 2024-09-07 01:31:04 +02:00
a98c216a8f
feat: switch to already open buffer instead of err 2024-09-06 20:01:15 +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
6e817b3e6d
fix: only register cmds once, dont create dir 2024-09-06 19:25:15 +02:00
9873617742
fix: dont prefix codemp:: so filename matches 2024-09-06 19:13:08 +02:00
9341095b68
fix: open buffers in last active window 2024-09-06 19:11:34 +02:00
ca3f6f210a
feat: allow creating workspaces
also connecting to specific server
2024-09-06 19:11:18 +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
46de8c5661
feat: allow attaching/sharing overwriting 2024-09-06 17:06:12 +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
a74355f6a0
fix: timer is global too 2024-09-06 03:44:18 +02:00
4141b01c42
fix: field name in config 2024-09-06 03:35:39 +02:00
76f7dc9261
fix: last native pending calls 2024-09-06 03:34:08 +02:00
216cd2d6b1
fix: codemp now uses a global
not sure how to pass the option back from setup() to window without a
global, but i'd love to...
2024-09-06 03:27:03 +02:00
cdbdd78547
chore: removed unneeded imports 2024-09-06 00:15:17 +02:00
28bb2a9aa3
fix: make neo-tree opt-in 2024-09-05 06:07:30 +02:00
3b12e448a2
fix: dont require neotree while loading neotree 2024-09-05 05:58:27 +02:00
81b9bdbac1
fix: require buffers before workspace
does it even matter?
2024-09-05 05:48:31 +02:00
3c3c1fd7c4
chore: less stuff on setup return 2024-09-05 05:44:26 +02:00
37005abdb2
feat: now codemp has a setup function
no longer sets it up itself upon requiring, mostly to just work ™️
with lazy.nvim
2024-09-05 05:38:13 +02:00
e47d7317c4
fix: toggle can be run even if disconnected 2024-09-05 05:28:48 +02:00
47aab0cbc6
fix: maybe build.lua should be in root? 2024-09-05 05:25:23 +02:00
7297eaa87d
fix: debug into build.lua 2024-09-05 05:22:21 +02:00
64bb920f76
fix: removed committed symlinks 2024-09-05 05:19:51 +02:00
fff083a9fb
feat: add build.lua to auto download native on lazy 2024-09-05 05:16:18 +02:00
0987a7b022
chore: moved under lua/codemp 2024-09-05 04:57:47 +02:00
be4d699eb6
chore: moved into lua 2024-09-05 04:55:42 +02:00