https://github.com/sloganking/desk-talk/blob/7e4d89c2570a9912f807abaf517e3ae81f2eb3c7/src/main.rs#L409-L418C57
The code above was added in order to make it so that when you stop pushing to talk and resume pushing to talk, you don't have to press space or period in between the messages. It will be seamless instead. However, the above code is simply a hack that works most of the time in only English and other languages may have different punctuation and styles of writing, so it should really be removed in favor of a better solution. Perhaps something using a large language model to figure out whether to add punctuation at the end or not.
I could also make adding a period in a space done if a clap CLI arg is passed.
https://github.com/sloganking/desk-talk/blob/7e4d89c2570a9912f807abaf517e3ae81f2eb3c7/src/main.rs#L409-L418C57
The code above was added in order to make it so that when you stop pushing to talk and resume pushing to talk, you don't have to press space or period in between the messages. It will be seamless instead. However, the above code is simply a hack that works most of the time in only English and other languages may have different punctuation and styles of writing, so it should really be removed in favor of a better solution. Perhaps something using a large language model to figure out whether to add punctuation at the end or not.
I could also make adding a period in a space done if a clap CLI arg is passed.