Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Update the code sending commands back to Kakoune to directly connect to the UNIX socket #227

Open
hadronized opened this issue Feb 14, 2024 · 3 comments
Labels
enhancement New feature or request prio:low Low priority

Comments

@hadronized
Copy link
Owner

The initial implementation I tried many commits ago tried to use the socket path directly, but I was constantly failing. The reason was that I was missing the protocol, which, back then, was not documented / hard to find.

Looks like it’s now doable. Context here.

@hadronized hadronized added the enhancement New feature or request label Feb 14, 2024
@hadronized hadronized added this to the kak-tree-sitter v0.6 milestone Feb 14, 2024
@mawww
Copy link

mawww commented Feb 17, 2024

Note that the protocol used on the socket is ad-hoc and might change at any point.

@hadronized
Copy link
Owner Author

Yeah, it should probably be documented somewhere? I don’t see myself implementing this issue right away; I think we should benchmark to see whether using kak -p starts being a bottleneck, vs. directly writing to the socket.

@hadronized
Copy link
Owner Author

I’m removing v0.6 as milestone, as this is just purely an optimization and somewhat maybe completely unneeded. We’ll see.

@hadronized hadronized removed this from the kak-tree-sitter v0.6 milestone Feb 25, 2024
@hadronized hadronized added the prio:low Low priority label Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request prio:low Low priority
Projects
None yet
Development

No branches or pull requests

2 participants