Skip to content

Add API to control from the outside #54

@Xenira

Description

@Xenira

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:

  1. (g)RPC
  2. Pipes
  3. Rest API

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:

  1. If multiple programs do this each would be playing their own sound causing overlap
  2. Config per program would be required
  3. 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 😜

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions