-
-
Notifications
You must be signed in to change notification settings - Fork 29
Add API to control from the outside #54
Description
Is your feature request related to a problem? Please describe.
#22 discusses different ways of changing the ding to ding after n characters.
While using different keys to determine the current column this will always have a bit of inaccuracy.
I propose to add a way to control daktilo from the outside to give editors the opportunity to report the current cursor position and/or line length.
Maybe other use cases for controlling the app from the outside might also arise in the future (e.g.: changing preset based on current project/application).
Describe the solution you'd like
I'd like to implement an api allowing external applications to control the running daktilo process.
For this one could use different ways of communication:
My prefered solution would probably be gRPC. While named pipes would be a really simple way of handling this the other methods probably scale a lot better.
The api should probably be disabled by default and can be enabled using the config file.
Describe alternatives you've considered
Programs could include a lib version of this project. This would have several drawbacks:
- If multiple programs do this each would be playing their own sound causing overlap
- Config per program would be required
- Programs would need to update daktilo lib and might have different versions (unless dynamic linked, but that would just add further complexity and breaking changes would break the libs till update)
Additional context
I'm investing way to much time into this and prob. over-engineering this. Please feel free to tell me if I am going too far 😜