win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

[Question] It's slow to trigger win-vind function from Command-line

Open SunnyLimc opened this issue 2 years ago • 1 comments

Because of #111,I try another ways to map functions from insert mode as the link described with Autohotkey.

But functions called from command line have a large delay (approximately 0.5s - 1s instead of instantly) which is inconvenient for daily using such as switch mode.

SunnyLimc avatar Jul 25 '22 14:07 SunnyLimc

That's right. The the interval time of synchronous timer is hard-coded.

https://github.com/pit-ray/win-vind/blob/12ea669c77d62f0b30d677f9de66229d1421287c/src/core/entry.cpp#L113

In this implementation, the main process read the function name periodically in the shared memoris and the sub process write the function name passed by --func.

I would like to improve this behavior in the next version.

If you have any solutions, please let me know.

Thanks.

pit-ray avatar Jul 28 '22 01:07 pit-ray

This issue was marked as stale because it has been inactive for 60 days. If there are no comments within 14 days, it will be closed automatically.

github-actions[bot] avatar Sep 26 '22 04:09 github-actions[bot]

This issue was marked as stale because it has been inactive for 60 days. If there are no comments within 14 days, it will be closed automatically.

github-actions[bot] avatar Dec 02 '22 02:12 github-actions[bot]

This issue has been marked as stale, but has not been mentioned for 14 days, so it is closed.

github-actions[bot] avatar Dec 17 '22 02:12 github-actions[bot]

The option listen_interval has been implemented for the next release and will be closed.

pit-ray avatar Jan 03 '23 12:01 pit-ray