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

Lazy commands #232

Open
hadronized opened this issue Feb 17, 2024 · 2 comments · May be fixed by #240
Open

Lazy commands #232

hadronized opened this issue Feb 17, 2024 · 2 comments · May be fixed by #240
Labels
enhancement New feature or request prio:low Low priority

Comments

@hadronized
Copy link
Owner

@topisani made an interesting commit recently allowing not to run a shell command if the buffer hasn’t changed. It uses a trick to find a function ending with -0, and we pass a timestamp as in place of the 0 so that it can use timestamps to know whether buffers have changed without any condition.

We should visit that idea to optimize.

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

Neat, I want this too, don't want to fall behind on street cred ;)

@hadronized
Copy link
Owner Author

It looks interesting, but clearly it’s optimizing.

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

Successfully merging a pull request may close this issue.

2 participants